Fix Centurion name.
[0ad.git] / libraries / source / spidermonkey / include-win32-debug / nspr / md / _win95.cfg
blobe8ee2eeb05336b1186863afb2ae290f505ee5990
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\r
2 /* This Source Code Form is subject to the terms of the Mozilla Public\r
3  * License, v. 2.0. If a copy of the MPL was not distributed with this\r
4  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */\r
5 \r
6 #ifndef nspr_cpucfg___\r
7 #define nspr_cpucfg___\r
8 \r
9 #ifndef XP_PC\r
10 #define XP_PC\r
11 #endif\r
13 #ifndef WIN32\r
14 #define WIN32\r
15 #endif\r
17 #ifndef WIN95\r
18 #define WIN95\r
19 #endif\r
21 #define PR_AF_INET6 23  /* same as AF_INET6 */\r
23 #if defined(_M_IX86) || defined(_X86_)\r
25 #define IS_LITTLE_ENDIAN 1\r
26 #undef  IS_BIG_ENDIAN\r
28 #define PR_BYTES_PER_BYTE   1\r
29 #define PR_BYTES_PER_SHORT  2\r
30 #define PR_BYTES_PER_INT    4\r
31 #define PR_BYTES_PER_INT64  8\r
32 #define PR_BYTES_PER_LONG   4\r
33 #define PR_BYTES_PER_FLOAT  4\r
34 #define PR_BYTES_PER_WORD       4\r
35 #define PR_BYTES_PER_DWORD      8\r
36 #define PR_BYTES_PER_DOUBLE 8\r
38 #define PR_BITS_PER_BYTE    8\r
39 #define PR_BITS_PER_SHORT   16\r
40 #define PR_BITS_PER_INT     32\r
41 #define PR_BITS_PER_INT64   64\r
42 #define PR_BITS_PER_LONG    32\r
43 #define PR_BITS_PER_FLOAT   32\r
44 #define PR_BITS_PER_WORD        32\r
45 #define PR_BITS_PER_DWORD       64\r
46 #define PR_BITS_PER_DOUBLE  64\r
48 #define PR_BITS_PER_BYTE_LOG2   3\r
49 #define PR_BITS_PER_SHORT_LOG2  4\r
50 #define PR_BITS_PER_INT_LOG2    5\r
51 #define PR_BITS_PER_INT64_LOG2  6\r
52 #define PR_BITS_PER_LONG_LOG2   5\r
53 #define PR_BITS_PER_FLOAT_LOG2  5\r
54 #define PR_BITS_PER_WORD_LOG2   5\r
55 #define PR_BITS_PER_DWORD_LOG2  6\r
56 #define PR_BITS_PER_DOUBLE_LOG2 6\r
58 #define PR_ALIGN_OF_SHORT   2\r
59 #define PR_ALIGN_OF_INT     4\r
60 #define PR_ALIGN_OF_LONG    4\r
61 #define PR_ALIGN_OF_INT64   8\r
62 #define PR_ALIGN_OF_FLOAT   4\r
63 #define PR_ALIGN_OF_WORD        4\r
64 #define PR_ALIGN_OF_DWORD       8\r
65 #define PR_ALIGN_OF_DOUBLE  4\r
66 #define PR_ALIGN_OF_POINTER 4\r
68 #define PR_BYTES_PER_WORD_LOG2  2\r
69 #define PR_BYTES_PER_DWORD_LOG2 3\r
71 #elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_)\r
73 #define IS_LITTLE_ENDIAN 1\r
74 #undef  IS_BIG_ENDIAN\r
75 #define IS_64\r
77 #define PR_BYTES_PER_BYTE   1\r
78 #define PR_BYTES_PER_SHORT  2\r
79 #define PR_BYTES_PER_INT    4\r
80 #define PR_BYTES_PER_INT64  8\r
81 #define PR_BYTES_PER_LONG   4\r
82 #define PR_BYTES_PER_FLOAT  4\r
83 #define PR_BYTES_PER_WORD       8\r
84 #define PR_BYTES_PER_DWORD      8\r
85 #define PR_BYTES_PER_DOUBLE 8\r
87 #define PR_BITS_PER_BYTE    8\r
88 #define PR_BITS_PER_SHORT   16\r
89 #define PR_BITS_PER_INT     32\r
90 #define PR_BITS_PER_INT64   64\r
91 #define PR_BITS_PER_LONG    32\r
92 #define PR_BITS_PER_FLOAT   32\r
93 #define PR_BITS_PER_WORD        64\r
94 #define PR_BITS_PER_DWORD       64\r
95 #define PR_BITS_PER_DOUBLE  64\r
97 #define PR_BITS_PER_BYTE_LOG2   3\r
98 #define PR_BITS_PER_SHORT_LOG2  4\r
99 #define PR_BITS_PER_INT_LOG2    5\r
100 #define PR_BITS_PER_INT64_LOG2  6\r
101 #define PR_BITS_PER_LONG_LOG2   5\r
102 #define PR_BITS_PER_FLOAT_LOG2  5\r
103 #define PR_BITS_PER_WORD_LOG2   6\r
104 #define PR_BITS_PER_DWORD_LOG2  6\r
105 #define PR_BITS_PER_DOUBLE_LOG2 6\r
107 #define PR_ALIGN_OF_SHORT   2\r
108 #define PR_ALIGN_OF_INT     4\r
109 #define PR_ALIGN_OF_LONG    4\r
110 #define PR_ALIGN_OF_INT64   8\r
111 #define PR_ALIGN_OF_FLOAT   4\r
112 #define PR_ALIGN_OF_WORD        8\r
113 #define PR_ALIGN_OF_DWORD       8\r
114 #define PR_ALIGN_OF_DOUBLE  8\r
115 #define PR_ALIGN_OF_POINTER 8\r
117 #define PR_BYTES_PER_WORD_LOG2  3\r
118 #define PR_BYTES_PER_DWORD_LOG2 3\r
120 #elif defined(_M_IA64) || defined(_IA64_)\r
122 #define IS_LITTLE_ENDIAN 1\r
123 #undef  IS_BIG_ENDIAN\r
124 #define IS_64\r
126 #define PR_BYTES_PER_BYTE   1\r
127 #define PR_BYTES_PER_SHORT  2\r
128 #define PR_BYTES_PER_INT    4\r
129 #define PR_BYTES_PER_INT64  8\r
130 #define PR_BYTES_PER_LONG   4\r
131 #define PR_BYTES_PER_FLOAT  4\r
132 #define PR_BYTES_PER_WORD       8\r
133 #define PR_BYTES_PER_DWORD      8\r
134 #define PR_BYTES_PER_DOUBLE 8\r
136 #define PR_BITS_PER_BYTE    8\r
137 #define PR_BITS_PER_SHORT   16\r
138 #define PR_BITS_PER_INT     32\r
139 #define PR_BITS_PER_INT64   64\r
140 #define PR_BITS_PER_LONG    32\r
141 #define PR_BITS_PER_FLOAT   32\r
142 #define PR_BITS_PER_WORD        64\r
143 #define PR_BITS_PER_DWORD       64\r
144 #define PR_BITS_PER_DOUBLE  64\r
146 #define PR_BITS_PER_BYTE_LOG2   3\r
147 #define PR_BITS_PER_SHORT_LOG2  4\r
148 #define PR_BITS_PER_INT_LOG2    5\r
149 #define PR_BITS_PER_INT64_LOG2  6\r
150 #define PR_BITS_PER_LONG_LOG2   5\r
151 #define PR_BITS_PER_FLOAT_LOG2  5\r
152 #define PR_BITS_PER_WORD_LOG2   6\r
153 #define PR_BITS_PER_DWORD_LOG2  6\r
154 #define PR_BITS_PER_DOUBLE_LOG2 6\r
156 #define PR_ALIGN_OF_SHORT   2\r
157 #define PR_ALIGN_OF_INT     4\r
158 #define PR_ALIGN_OF_LONG    4\r
159 #define PR_ALIGN_OF_INT64   8\r
160 #define PR_ALIGN_OF_FLOAT   4\r
161 #define PR_ALIGN_OF_WORD        8\r
162 #define PR_ALIGN_OF_DWORD       8\r
163 #define PR_ALIGN_OF_DOUBLE  8\r
164 #define PR_ALIGN_OF_POINTER 8\r
166 #define PR_BYTES_PER_WORD_LOG2  3\r
167 #define PR_BYTES_PER_DWORD_LOG2 3\r
169 #elif defined(_M_ARM) || defined(_ARM_)\r
171 #define IS_LITTLE_ENDIAN 1\r
172 #undef  IS_BIG_ENDIAN\r
174 #define PR_BYTES_PER_BYTE   1\r
175 #define PR_BYTES_PER_SHORT  2\r
176 #define PR_BYTES_PER_INT    4\r
177 #define PR_BYTES_PER_INT64  8\r
178 #define PR_BYTES_PER_LONG   4\r
179 #define PR_BYTES_PER_FLOAT  4\r
180 #define PR_BYTES_PER_WORD   4\r
181 #define PR_BYTES_PER_DWORD  8\r
182 #define PR_BYTES_PER_DOUBLE 8\r
184 #define PR_BITS_PER_BYTE    8\r
185 #define PR_BITS_PER_SHORT   16\r
186 #define PR_BITS_PER_INT     32\r
187 #define PR_BITS_PER_INT64   64\r
188 #define PR_BITS_PER_LONG    32\r
189 #define PR_BITS_PER_FLOAT   32\r
190 #define PR_BITS_PER_WORD    32\r
191 #define PR_BITS_PER_DWORD   64\r
192 #define PR_BITS_PER_DOUBLE  64\r
194 #define PR_BITS_PER_BYTE_LOG2   3\r
195 #define PR_BITS_PER_SHORT_LOG2  4\r
196 #define PR_BITS_PER_INT_LOG2    5\r
197 #define PR_BITS_PER_INT64_LOG2  6\r
198 #define PR_BITS_PER_LONG_LOG2   5\r
199 #define PR_BITS_PER_FLOAT_LOG2  5\r
200 #define PR_BITS_PER_WORD_LOG2   5\r
201 #define PR_BITS_PER_DWORD_LOG2  6\r
202 #define PR_BITS_PER_DOUBLE_LOG2 6\r
204 #define PR_ALIGN_OF_SHORT   2\r
205 #define PR_ALIGN_OF_INT     4\r
206 #define PR_ALIGN_OF_LONG    4\r
207 #define PR_ALIGN_OF_INT64   8\r
208 #define PR_ALIGN_OF_FLOAT   4\r
209 #define PR_ALIGN_OF_WORD    4\r
210 #define PR_ALIGN_OF_DWORD   8\r
211 #define PR_ALIGN_OF_DOUBLE  8\r
212 #define PR_ALIGN_OF_POINTER 4\r
214 #define PR_BYTES_PER_WORD_LOG2  2\r
215 #define PR_BYTES_PER_DWORD_LOG2 3\r
217 #elif defined(_M_ARM64) || defined(_ARM64_)\r
219 #define IS_LITTLE_ENDIAN 1\r
220 #undef  IS_BIG_ENDIAN\r
221 #define IS_64\r
223 #define PR_BYTES_PER_BYTE   1\r
224 #define PR_BYTES_PER_SHORT  2\r
225 #define PR_BYTES_PER_INT    4\r
226 #define PR_BYTES_PER_INT64  8\r
227 #define PR_BYTES_PER_LONG   4\r
228 #define PR_BYTES_PER_FLOAT  4\r
229 #define PR_BYTES_PER_WORD       8\r
230 #define PR_BYTES_PER_DWORD      8\r
231 #define PR_BYTES_PER_DOUBLE 8\r
233 #define PR_BITS_PER_BYTE    8\r
234 #define PR_BITS_PER_SHORT   16\r
235 #define PR_BITS_PER_INT     32\r
236 #define PR_BITS_PER_INT64   64\r
237 #define PR_BITS_PER_LONG    32\r
238 #define PR_BITS_PER_FLOAT   32\r
239 #define PR_BITS_PER_WORD        64\r
240 #define PR_BITS_PER_DWORD       64\r
241 #define PR_BITS_PER_DOUBLE  64\r
243 #define PR_BITS_PER_BYTE_LOG2   3\r
244 #define PR_BITS_PER_SHORT_LOG2  4\r
245 #define PR_BITS_PER_INT_LOG2    5\r
246 #define PR_BITS_PER_INT64_LOG2  6\r
247 #define PR_BITS_PER_LONG_LOG2   5\r
248 #define PR_BITS_PER_FLOAT_LOG2  5\r
249 #define PR_BITS_PER_WORD_LOG2   6\r
250 #define PR_BITS_PER_DWORD_LOG2  6\r
251 #define PR_BITS_PER_DOUBLE_LOG2 6\r
253 #define PR_ALIGN_OF_SHORT   2\r
254 #define PR_ALIGN_OF_INT     4\r
255 #define PR_ALIGN_OF_LONG    4\r
256 #define PR_ALIGN_OF_INT64   8\r
257 #define PR_ALIGN_OF_FLOAT   4\r
258 #define PR_ALIGN_OF_WORD        8\r
259 #define PR_ALIGN_OF_DWORD       8\r
260 #define PR_ALIGN_OF_DOUBLE  8\r
261 #define PR_ALIGN_OF_POINTER 8\r
263 #define PR_BYTES_PER_WORD_LOG2  3\r
264 #define PR_BYTES_PER_DWORD_LOG2 3\r
266 #else /* defined(_M_IX86) || defined(_X86_) */\r
268 #error unknown processor architecture\r
270 #endif /* defined(_M_IX86) || defined(_X86_) */\r
272 #ifndef HAVE_LONG_LONG\r
273 #define HAVE_LONG_LONG\r
274 #endif\r
276 #ifndef NO_NSPR_10_SUPPORT\r
278 #define BYTES_PER_BYTE      PR_BYTES_PER_BYTE\r
279 #define BYTES_PER_SHORT     PR_BYTES_PER_SHORT\r
280 #define BYTES_PER_INT       PR_BYTES_PER_INT\r
281 #define BYTES_PER_INT64     PR_BYTES_PER_INT64\r
282 #define BYTES_PER_LONG      PR_BYTES_PER_LONG\r
283 #define BYTES_PER_FLOAT     PR_BYTES_PER_FLOAT\r
284 #define BYTES_PER_DOUBLE    PR_BYTES_PER_DOUBLE\r
285 #define BYTES_PER_WORD      PR_BYTES_PER_WORD\r
286 #define BYTES_PER_DWORD     PR_BYTES_PER_DWORD\r
288 #define BITS_PER_BYTE       PR_BITS_PER_BYTE\r
289 #define BITS_PER_SHORT      PR_BITS_PER_SHORT\r
290 #define BITS_PER_INT        PR_BITS_PER_INT\r
291 #define BITS_PER_INT64      PR_BITS_PER_INT64\r
292 #define BITS_PER_LONG       PR_BITS_PER_LONG\r
293 #define BITS_PER_FLOAT      PR_BITS_PER_FLOAT\r
294 #define BITS_PER_DOUBLE     PR_BITS_PER_DOUBLE\r
295 #define BITS_PER_WORD       PR_BITS_PER_WORD\r
297 #define BITS_PER_BYTE_LOG2  PR_BITS_PER_BYTE_LOG2\r
298 #define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2\r
299 #define BITS_PER_INT_LOG2   PR_BITS_PER_INT_LOG2\r
300 #define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2\r
301 #define BITS_PER_LONG_LOG2  PR_BITS_PER_LONG_LOG2\r
302 #define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2\r
303 #define BITS_PER_DOUBLE_LOG2    PR_BITS_PER_DOUBLE_LOG2\r
304 #define BITS_PER_WORD_LOG2  PR_BITS_PER_WORD_LOG2\r
306 #define ALIGN_OF_SHORT      PR_ALIGN_OF_SHORT\r
307 #define ALIGN_OF_INT        PR_ALIGN_OF_INT\r
308 #define ALIGN_OF_LONG       PR_ALIGN_OF_LONG\r
309 #define ALIGN_OF_INT64      PR_ALIGN_OF_INT64\r
310 #define ALIGN_OF_FLOAT      PR_ALIGN_OF_FLOAT\r
311 #define ALIGN_OF_DOUBLE     PR_ALIGN_OF_DOUBLE\r
312 #define ALIGN_OF_POINTER    PR_ALIGN_OF_POINTER\r
313 #define ALIGN_OF_WORD       PR_ALIGN_OF_WORD\r
315 #define BYTES_PER_WORD_LOG2             PR_BYTES_PER_WORD_LOG2\r
316 #define BYTES_PER_DWORD_LOG2    PR_BYTES_PER_DWORD_LOG2\r
317 #define WORDS_PER_DWORD_LOG2    PR_WORDS_PER_DWORD_LOG2\r
319 #endif /* NO_NSPR_10_SUPPORT */\r
321 #endif /* nspr_cpucfg___ */\r