VirtualBox

source: vbox/trunk/src/libs/xpcom18a4/nsprpub/pr/include/md/_nextstep.cfg@ 1

Last change on this file since 1 was 1, checked in by vboxsync, 55 years ago

import

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 7.5 KB
Line 
1/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2/* ***** BEGIN LICENSE BLOCK *****
3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
4 *
5 * The contents of this file are subject to the Mozilla Public License Version
6 * 1.1 (the "License"); you may not use this file except in compliance with
7 * the License. You may obtain a copy of the License at
8 * http://www.mozilla.org/MPL/
9 *
10 * Software distributed under the License is distributed on an "AS IS" basis,
11 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12 * for the specific language governing rights and limitations under the
13 * License.
14 *
15 * The Original Code is the Netscape Portable Runtime (NSPR).
16 *
17 * The Initial Developer of the Original Code is
18 * Netscape Communications Corporation.
19 * Portions created by the Initial Developer are Copyright (C) 1998-2000
20 * the Initial Developer. All Rights Reserved.
21 *
22 * Contributor(s):
23 *
24 * Alternatively, the contents of this file may be used under the terms of
25 * either the GNU General Public License Version 2 or later (the "GPL"), or
26 * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
27 * in which case the provisions of the GPL or the LGPL are applicable instead
28 * of those above. If you wish to allow use of your version of this file only
29 * under the terms of either the GPL or the LGPL, and not to allow others to
30 * use your version of this file under the terms of the MPL, indicate your
31 * decision by deleting the provisions above and replace them with the notice
32 * and other provisions required by the GPL or the LGPL. If you do not delete
33 * the provisions above, a recipient may use your version of this file under
34 * the terms of any one of the MPL, the GPL or the LGPL.
35 *
36 * ***** END LICENSE BLOCK ***** */
37
38#ifndef nspr_cpucfg___
39#define nspr_cpucfg___
40
41#ifndef XP_UNIX
42#define XP_UNIX
43#endif
44
45#ifndef NEXTSTEP
46#define NEXTSTEP
47#endif
48
49/* Platform specific
50*/
51#if defined(__sparc__)
52
53/* Check these
54*/
55#undef IS_LITTLE_ENDIAN
56#define IS_BIG_ENDIAN 1
57#define HAVE_LONG_LONG
58#undef HAVE_ALIGNED_DOUBLES
59#define HAVE_ALIGNED_LONGLONGS 1
60
61#define PR_BYTES_PER_BYTE 1
62#define PR_BYTES_PER_SHORT 2
63#define PR_BYTES_PER_INT 4
64#define PR_BYTES_PER_INT64 8
65#define PR_BYTES_PER_LONG 4
66#define PR_BYTES_PER_FLOAT 4
67#define PR_BYTES_PER_DOUBLE 8
68/* Taken from _solaris.cfg
69*/
70#define PR_BYTES_PER_WORD 4
71#define PR_BYTES_PER_DWORD 8
72#define PR_BYTES_PER_WORD_LOG2 2
73#define PR_BYTES_PER_DWORD_LOG2 3
74
75#define PR_BITS_PER_BYTE 8
76#define PR_BITS_PER_SHORT 16
77#define PR_BITS_PER_INT 32
78#define PR_BITS_PER_INT64 64
79#define PR_BITS_PER_LONG 32
80#define PR_BITS_PER_FLOAT 32
81#define PR_BITS_PER_DOUBLE 64
82/* Taken from _solaris.cfg
83*/
84#define PR_BITS_PER_WORD 32
85
86#define PR_BITS_PER_BYTE_LOG2 3
87#define PR_BITS_PER_SHORT_LOG2 4
88#define PR_BITS_PER_INT_LOG2 5
89#define PR_BITS_PER_INT64_LOG2 6
90#define PR_BITS_PER_LONG_LOG2 5
91#define PR_BITS_PER_FLOAT_LOG2 5
92#define PR_BITS_PER_DOUBLE_LOG2 6
93/* Taken from _solaris.cfg
94*/
95#define PR_BITS_PER_WORD_LOG2 5
96
97#define PR_ALIGN_OF_SHORT 2
98#define PR_ALIGN_OF_INT 4
99#define PR_ALIGN_OF_LONG 4
100#define PR_ALIGN_OF_INT64 8
101#define PR_ALIGN_OF_FLOAT 4
102#define PR_ALIGN_OF_DOUBLE 8
103#define PR_ALIGN_OF_POINTER 4
104
105#define PR_WORDS_PER_DWORD_LOG2 1
106
107#elif defined(__m68k__)
108
109/* Check these
110*/
111#undef IS_LITTLE_ENDIAN
112#define IS_BIG_ENDIAN 1
113#define HAVE_LONG_LONG
114#undef HAVE_ALIGNED_DOUBLES
115#define HAVE_ALIGNED_LONGLONGS 1
116
117#define PR_BYTES_PER_BYTE 1
118#define PR_BYTES_PER_SHORT 2
119#define PR_BYTES_PER_INT 4
120#define PR_BYTES_PER_INT64 8
121#define PR_BYTES_PER_LONG 4
122#define PR_BYTES_PER_FLOAT 4
123#define PR_BYTES_PER_DOUBLE 8
124#define PR_BYTES_PER_WORD 4
125#define PR_BYTES_PER_DWORD 8
126#define PR_BYTES_PER_WORD_LOG2 2
127#define PR_BYTES_PER_DWORD_LOG2 3
128
129#define PR_BITS_PER_BYTE 8
130#define PR_BITS_PER_SHORT 16
131#define PR_BITS_PER_INT 32
132#define PR_BITS_PER_INT64 64
133#define PR_BITS_PER_LONG 32
134#define PR_BITS_PER_FLOAT 32
135#define PR_BITS_PER_DOUBLE 64
136#define PR_BITS_PER_WORD 32
137
138#define PR_BITS_PER_BYTE_LOG2 3
139#define PR_BITS_PER_SHORT_LOG2 4
140#define PR_BITS_PER_INT_LOG2 5
141#define PR_BITS_PER_INT64_LOG2 6
142#define PR_BITS_PER_LONG_LOG2 5
143#define PR_BITS_PER_FLOAT_LOG2 5
144#define PR_BITS_PER_DOUBLE_LOG2 6
145#define PR_BITS_PER_WORD_LOG2 5
146
147#define PR_ALIGN_OF_SHORT 2
148#define PR_ALIGN_OF_INT 2
149#define PR_ALIGN_OF_LONG 2
150#define PR_ALIGN_OF_INT64 2
151#define PR_ALIGN_OF_FLOAT 2
152#define PR_ALIGN_OF_DOUBLE 2
153#define PR_ALIGN_OF_POINTER 2
154
155#define PR_WORDS_PER_DWORD_LOG2 1
156
157#elif defined(__i386__)
158
159/* Check these
160*/
161#define IS_LITTLE_ENDIAN 1
162#undef IS_BIG_ENDIAN
163#define HAVE_LONG_LONG
164#undef HAVE_ALIGNED_DOUBLES
165#define HAVE_ALIGNED_LONGLONGS 1
166
167#define PR_BYTES_PER_BYTE 1
168#define PR_BYTES_PER_SHORT 2
169#define PR_BYTES_PER_INT 4
170#define PR_BYTES_PER_INT64 8
171#define PR_BYTES_PER_LONG 4
172#define PR_BYTES_PER_FLOAT 4
173#define PR_BYTES_PER_DOUBLE 8
174#define PR_BYTES_PER_WORD 4
175#define PR_BYTES_PER_DWORD 8
176
177#define PR_BITS_PER_BYTE 8
178#define PR_BITS_PER_SHORT 16
179#define PR_BITS_PER_INT 32
180#define PR_BITS_PER_INT64 64
181#define PR_BITS_PER_LONG 32
182#define PR_BITS_PER_FLOAT 32
183#define PR_BITS_PER_DOUBLE 64
184#define PR_BITS_PER_WORD 32
185
186#define PR_BITS_PER_BYTE_LOG2 3
187#define PR_BITS_PER_SHORT_LOG2 4
188#define PR_BITS_PER_INT_LOG2 5
189#define PR_BITS_PER_INT64_LOG2 6
190#define PR_BITS_PER_LONG_LOG2 5
191#define PR_BITS_PER_FLOAT_LOG2 5
192#define PR_BITS_PER_DOUBLE_LOG2 6
193#define PR_BITS_PER_WORD_LOG2 5
194
195#define PR_ALIGN_OF_SHORT 2
196#define PR_ALIGN_OF_INT 4
197#define PR_ALIGN_OF_LONG 4
198#define PR_ALIGN_OF_INT64 4
199#define PR_ALIGN_OF_FLOAT 4
200#define PR_ALIGN_OF_DOUBLE 4
201#define PR_ALIGN_OF_POINTER 4
202#define PR_ALIGN_OF_WORD 4
203
204#define PR_BYTES_PER_WORD_LOG2 2
205#define PR_BYTES_PER_DWORD_LOG2 3
206#define PR_WORDS_PER_DWORD_LOG2 1
207#endif /* defined(__somearch__) */
208
209
210#ifndef NO_NSPR_10_SUPPORT
211
212#define BYTES_PER_BYTE PR_BYTES_PER_BYTE
213#define BYTES_PER_SHORT PR_BYTES_PER_SHORT
214#define BYTES_PER_INT PR_BYTES_PER_INT
215#define BYTES_PER_INT64 PR_BYTES_PER_INT64
216#define BYTES_PER_LONG PR_BYTES_PER_LONG
217#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
218#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
219#define BYTES_PER_WORD PR_BYTES_PER_WORD
220#define BYTES_PER_DWORD PR_BYTES_PER_DWORD
221
222#define BITS_PER_BYTE PR_BITS_PER_BYTE
223#define BITS_PER_SHORT PR_BITS_PER_SHORT
224#define BITS_PER_INT PR_BITS_PER_INT
225#define BITS_PER_INT64 PR_BITS_PER_INT64
226#define BITS_PER_LONG PR_BITS_PER_LONG
227#define BITS_PER_FLOAT PR_BITS_PER_FLOAT
228#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
229#define BITS_PER_WORD PR_BITS_PER_WORD
230
231#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
232#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
233#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
234#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
235#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
236#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
237#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
238#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
239
240#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
241#define ALIGN_OF_INT PR_ALIGN_OF_INT
242#define ALIGN_OF_LONG PR_ALIGN_OF_LONG
243#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
244#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
245#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
246#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
247#define ALIGN_OF_WORD PR_ALIGN_OF_WORD
248
249#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
250#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
251#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
252
253#endif /* NO_NSPR_10_SUPPORT */
254
255#endif /* nspr_cpucfg___ */
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette