Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / third_party / npapi / npspy / extern / nspr / md / _linux.cfg
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */\r
2 /* \r
3  * The contents of this file are subject to the Mozilla Public\r
4  * License Version 1.1 (the "License"); you may not use this file\r
5  * except in compliance with the License. You may obtain a copy of\r
6  * the License at http://www.mozilla.org/MPL/\r
7  * \r
8  * Software distributed under the License is distributed on an "AS\r
9  * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or\r
10  * implied. See the License for the specific language governing\r
11  * rights and limitations under the License.\r
12  * \r
13  * The Original Code is the Netscape Portable Runtime (NSPR).\r
14  * \r
15  * The Initial Developer of the Original Code is Netscape\r
16  * Communications Corporation.  Portions created by Netscape are \r
17  * Copyright (C) 1998-2000 Netscape Communications Corporation.  All\r
18  * Rights Reserved.\r
19  * \r
20  * Contributor(s):\r
21  * \r
22  * Alternatively, the contents of this file may be used under the\r
23  * terms of the GNU General Public License Version 2 or later (the\r
24  * "GPL"), in which case the provisions of the GPL are applicable \r
25  * instead of those above.  If you wish to allow use of your \r
26  * version of this file only under the terms of the GPL and not to\r
27  * allow others to use your version of this file under the MPL,\r
28  * indicate your decision by deleting the provisions above and\r
29  * replace them with the notice and other provisions required by\r
30  * the GPL.  If you do not delete the provisions above, a recipient\r
31  * may use your version of this file under either the MPL or the\r
32  * GPL.\r
33  */\r
34 \r
35 #ifndef nspr_cpucfg___\r
36 #define nspr_cpucfg___\r
37 \r
38 #ifndef XP_UNIX\r
39 #define XP_UNIX\r
40 #endif\r
41 \r
42 #ifndef LINUX\r
43 #define LINUX\r
44 #endif\r
45 \r
46 #define PR_AF_INET6 10  /* same as AF_INET6 */\r
47 \r
48 #ifdef __powerpc__\r
49 \r
50 #undef  IS_LITTLE_ENDIAN\r
51 #define IS_BIG_ENDIAN    1\r
52 \r
53 #define PR_BYTES_PER_BYTE   1\r
54 #define PR_BYTES_PER_SHORT  2\r
55 #define PR_BYTES_PER_INT    4\r
56 #define PR_BYTES_PER_INT64  8\r
57 #define PR_BYTES_PER_LONG   4\r
58 #define PR_BYTES_PER_FLOAT  4\r
59 #define PR_BYTES_PER_DOUBLE 8\r
60 #define PR_BYTES_PER_WORD   4\r
61 #define PR_BYTES_PER_DWORD  8\r
62 \r
63 #define PR_BITS_PER_BYTE    8\r
64 #define PR_BITS_PER_SHORT   16\r
65 #define PR_BITS_PER_INT     32\r
66 #define PR_BITS_PER_INT64   64\r
67 #define PR_BITS_PER_LONG    32\r
68 #define PR_BITS_PER_FLOAT   32\r
69 #define PR_BITS_PER_DOUBLE  64\r
70 #define PR_BITS_PER_WORD    32\r
71 \r
72 #define PR_BITS_PER_BYTE_LOG2   3\r
73 #define PR_BITS_PER_SHORT_LOG2  4\r
74 #define PR_BITS_PER_INT_LOG2    5\r
75 #define PR_BITS_PER_INT64_LOG2  6\r
76 #define PR_BITS_PER_LONG_LOG2   5\r
77 #define PR_BITS_PER_FLOAT_LOG2  5\r
78 #define PR_BITS_PER_DOUBLE_LOG2 6\r
79 #define PR_BITS_PER_WORD_LOG2   5\r
80 \r
81 #define PR_ALIGN_OF_SHORT   2\r
82 #define PR_ALIGN_OF_INT     4\r
83 #define PR_ALIGN_OF_LONG    4\r
84 #define PR_ALIGN_OF_INT64   8\r
85 #define PR_ALIGN_OF_FLOAT   4\r
86 #define PR_ALIGN_OF_DOUBLE  8\r
87 #define PR_ALIGN_OF_POINTER 4\r
88 #define PR_ALIGN_OF_WORD    4\r
89 \r
90 #define PR_BYTES_PER_WORD_LOG2   2\r
91 #define PR_BYTES_PER_DWORD_LOG2  3\r
92 \r
93 #elif defined(__alpha)\r
94 \r
95 #define IS_LITTLE_ENDIAN 1\r
96 #undef  IS_BIG_ENDIAN\r
97 #define IS_64\r
98 \r
99 #define PR_BYTES_PER_BYTE   1\r
100 #define PR_BYTES_PER_SHORT  2\r
101 #define PR_BYTES_PER_INT    4\r
102 #define PR_BYTES_PER_INT64  8\r
103 #define PR_BYTES_PER_LONG   8\r
104 #define PR_BYTES_PER_FLOAT  4\r
105 #define PR_BYTES_PER_DOUBLE 8\r
106 #define PR_BYTES_PER_WORD   8\r
107 #define PR_BYTES_PER_DWORD  8\r
108 \r
109 #define PR_BITS_PER_BYTE    8\r
110 #define PR_BITS_PER_SHORT   16\r
111 #define PR_BITS_PER_INT     32\r
112 #define PR_BITS_PER_INT64   64\r
113 #define PR_BITS_PER_LONG    64\r
114 #define PR_BITS_PER_FLOAT   32\r
115 #define PR_BITS_PER_DOUBLE  64\r
116 #define PR_BITS_PER_WORD    64\r
117 \r
118 #define PR_BITS_PER_BYTE_LOG2   3\r
119 #define PR_BITS_PER_SHORT_LOG2  4\r
120 #define PR_BITS_PER_INT_LOG2    5\r
121 #define PR_BITS_PER_INT64_LOG2  6\r
122 #define PR_BITS_PER_LONG_LOG2   6\r
123 #define PR_BITS_PER_FLOAT_LOG2  5\r
124 #define PR_BITS_PER_DOUBLE_LOG2 6\r
125 #define PR_BITS_PER_WORD_LOG2   6\r
126 \r
127 #define PR_ALIGN_OF_SHORT   2\r
128 #define PR_ALIGN_OF_INT     4\r
129 #define PR_ALIGN_OF_LONG    8\r
130 #define PR_ALIGN_OF_INT64   8\r
131 #define PR_ALIGN_OF_FLOAT   4\r
132 #define PR_ALIGN_OF_DOUBLE  8\r
133 #define PR_ALIGN_OF_POINTER 8\r
134 #define PR_ALIGN_OF_WORD    8\r
135 \r
136 #define PR_BYTES_PER_WORD_LOG2  3\r
137 #define PR_BYTES_PER_DWORD_LOG2 3\r
138 \r
139 #elif defined(__ia64__)\r
140 \r
141 #define IS_LITTLE_ENDIAN 1\r
142 #undef  IS_BIG_ENDIAN\r
143 #define IS_64\r
144 \r
145 #define PR_BYTES_PER_BYTE   1\r
146 #define PR_BYTES_PER_SHORT  2\r
147 #define PR_BYTES_PER_INT    4\r
148 #define PR_BYTES_PER_INT64  8\r
149 #define PR_BYTES_PER_LONG   8\r
150 #define PR_BYTES_PER_FLOAT  4\r
151 #define PR_BYTES_PER_DOUBLE 8\r
152 #define PR_BYTES_PER_WORD   8\r
153 #define PR_BYTES_PER_DWORD  8\r
154 \r
155 #define PR_BITS_PER_BYTE    8\r
156 #define PR_BITS_PER_SHORT   16\r
157 #define PR_BITS_PER_INT     32\r
158 #define PR_BITS_PER_INT64   64\r
159 #define PR_BITS_PER_LONG    64\r
160 #define PR_BITS_PER_FLOAT   32\r
161 #define PR_BITS_PER_DOUBLE  64\r
162 #define PR_BITS_PER_WORD    64\r
163 \r
164 #define PR_BITS_PER_BYTE_LOG2   3\r
165 #define PR_BITS_PER_SHORT_LOG2  4\r
166 #define PR_BITS_PER_INT_LOG2    5\r
167 #define PR_BITS_PER_INT64_LOG2  6\r
168 #define PR_BITS_PER_LONG_LOG2   6\r
169 #define PR_BITS_PER_FLOAT_LOG2  5\r
170 #define PR_BITS_PER_DOUBLE_LOG2 6\r
171 #define PR_BITS_PER_WORD_LOG2   6\r
172 \r
173 #define PR_ALIGN_OF_SHORT   2\r
174 #define PR_ALIGN_OF_INT     4\r
175 #define PR_ALIGN_OF_LONG    8\r
176 #define PR_ALIGN_OF_INT64   8\r
177 #define PR_ALIGN_OF_FLOAT   4\r
178 #define PR_ALIGN_OF_DOUBLE  8\r
179 #define PR_ALIGN_OF_POINTER 8\r
180 #define PR_ALIGN_OF_WORD    8\r
181 \r
182 #define PR_BYTES_PER_WORD_LOG2  3\r
183 #define PR_BYTES_PER_DWORD_LOG2 3\r
184 \r
185 #elif defined(__x86_64__)\r
186 \r
187 #define IS_LITTLE_ENDIAN 1\r
188 #undef  IS_BIG_ENDIAN\r
189 #define IS_64\r
190 \r
191 #define PR_BYTES_PER_BYTE   1\r
192 #define PR_BYTES_PER_SHORT  2\r
193 #define PR_BYTES_PER_INT    4\r
194 #define PR_BYTES_PER_INT64  8\r
195 #define PR_BYTES_PER_LONG   8\r
196 #define PR_BYTES_PER_FLOAT  4\r
197 #define PR_BYTES_PER_DOUBLE 8\r
198 #define PR_BYTES_PER_WORD   8\r
199 #define PR_BYTES_PER_DWORD  8\r
200 \r
201 #define PR_BITS_PER_BYTE    8\r
202 #define PR_BITS_PER_SHORT   16\r
203 #define PR_BITS_PER_INT     32\r
204 #define PR_BITS_PER_INT64   64\r
205 #define PR_BITS_PER_LONG    64\r
206 #define PR_BITS_PER_FLOAT   32\r
207 #define PR_BITS_PER_DOUBLE  64\r
208 #define PR_BITS_PER_WORD    64\r
209 \r
210 #define PR_BITS_PER_BYTE_LOG2   3\r
211 #define PR_BITS_PER_SHORT_LOG2  4\r
212 #define PR_BITS_PER_INT_LOG2    5\r
213 #define PR_BITS_PER_INT64_LOG2  6\r
214 #define PR_BITS_PER_LONG_LOG2   6\r
215 #define PR_BITS_PER_FLOAT_LOG2  5\r
216 #define PR_BITS_PER_DOUBLE_LOG2 6\r
217 #define PR_BITS_PER_WORD_LOG2   6\r
218 \r
219 #define PR_ALIGN_OF_SHORT   2\r
220 #define PR_ALIGN_OF_INT     4\r
221 #define PR_ALIGN_OF_LONG    8\r
222 #define PR_ALIGN_OF_INT64   8\r
223 #define PR_ALIGN_OF_FLOAT   4\r
224 #define PR_ALIGN_OF_DOUBLE  8\r
225 #define PR_ALIGN_OF_POINTER 8\r
226 #define PR_ALIGN_OF_WORD    8\r
227 \r
228 #define PR_BYTES_PER_WORD_LOG2  3\r
229 #define PR_BYTES_PER_DWORD_LOG2 3\r
230 \r
231 #elif defined(__mc68000__)\r
232 \r
233 #undef  IS_LITTLE_ENDIAN\r
234 #define IS_BIG_ENDIAN 1\r
235 \r
236 #define PR_BYTES_PER_BYTE   1\r
237 #define PR_BYTES_PER_SHORT  2\r
238 #define PR_BYTES_PER_INT    4\r
239 #define PR_BYTES_PER_INT64  8\r
240 #define PR_BYTES_PER_LONG   4\r
241 #define PR_BYTES_PER_FLOAT  4\r
242 #define PR_BYTES_PER_DOUBLE 8\r
243 #define PR_BYTES_PER_WORD   4\r
244 #define PR_BYTES_PER_DWORD  8\r
245 \r
246 #define PR_BITS_PER_BYTE    8\r
247 #define PR_BITS_PER_SHORT   16\r
248 #define PR_BITS_PER_INT     32\r
249 #define PR_BITS_PER_INT64   64\r
250 #define PR_BITS_PER_LONG    32\r
251 #define PR_BITS_PER_FLOAT   32\r
252 #define PR_BITS_PER_DOUBLE  64\r
253 #define PR_BITS_PER_WORD    32\r
254 \r
255 #define PR_BITS_PER_BYTE_LOG2   3\r
256 #define PR_BITS_PER_SHORT_LOG2  4\r
257 #define PR_BITS_PER_INT_LOG2    5\r
258 #define PR_BITS_PER_INT64_LOG2  6\r
259 #define PR_BITS_PER_LONG_LOG2   5\r
260 #define PR_BITS_PER_FLOAT_LOG2  5\r
261 #define PR_BITS_PER_DOUBLE_LOG2 6\r
262 #define PR_BITS_PER_WORD_LOG2   5\r
263 \r
264 #define PR_ALIGN_OF_SHORT   2\r
265 #define PR_ALIGN_OF_INT     2\r
266 #define PR_ALIGN_OF_LONG    2\r
267 #define PR_ALIGN_OF_INT64   2\r
268 #define PR_ALIGN_OF_FLOAT   2\r
269 #define PR_ALIGN_OF_DOUBLE  2\r
270 #define PR_ALIGN_OF_POINTER 2\r
271 #define PR_ALIGN_OF_WORD    2\r
272 \r
273 #define PR_BYTES_PER_WORD_LOG2   2\r
274 #define PR_BYTES_PER_DWORD_LOG2  3\r
275 \r
276 #elif defined(__sparc__)\r
277 \r
278 #undef  IS_LITTLE_ENDIAN\r
279 #define IS_BIG_ENDIAN 1\r
280 \r
281 #define PR_BYTES_PER_BYTE   1\r
282 #define PR_BYTES_PER_SHORT  2\r
283 #define PR_BYTES_PER_INT    4\r
284 #define PR_BYTES_PER_INT64  8\r
285 #define PR_BYTES_PER_LONG   4\r
286 #define PR_BYTES_PER_FLOAT  4\r
287 #define PR_BYTES_PER_DOUBLE 8\r
288 #define PR_BYTES_PER_WORD   4\r
289 #define PR_BYTES_PER_DWORD  8\r
290 \r
291 #define PR_BITS_PER_BYTE    8\r
292 #define PR_BITS_PER_SHORT   16\r
293 #define PR_BITS_PER_INT     32\r
294 #define PR_BITS_PER_INT64   64\r
295 #define PR_BITS_PER_LONG    32\r
296 #define PR_BITS_PER_FLOAT   32\r
297 #define PR_BITS_PER_DOUBLE  64\r
298 #define PR_BITS_PER_WORD    32\r
299 \r
300 #define PR_BITS_PER_BYTE_LOG2   3\r
301 #define PR_BITS_PER_SHORT_LOG2  4\r
302 #define PR_BITS_PER_INT_LOG2    5\r
303 #define PR_BITS_PER_INT64_LOG2  6\r
304 #define PR_BITS_PER_LONG_LOG2   5\r
305 #define PR_BITS_PER_FLOAT_LOG2  5\r
306 #define PR_BITS_PER_DOUBLE_LOG2 6\r
307 #define PR_BITS_PER_WORD_LOG2   5\r
308 \r
309 #define PR_ALIGN_OF_SHORT   2\r
310 #define PR_ALIGN_OF_INT     4\r
311 #define PR_ALIGN_OF_LONG    4\r
312 #define PR_ALIGN_OF_INT64   8\r
313 #define PR_ALIGN_OF_FLOAT   4\r
314 #define PR_ALIGN_OF_DOUBLE  8\r
315 #define PR_ALIGN_OF_POINTER 4\r
316 #define PR_ALIGN_OF_WORD    4\r
317 \r
318 #define PR_BYTES_PER_WORD_LOG2   2\r
319 #define PR_BYTES_PER_DWORD_LOG2  3\r
320 \r
321 #elif defined(__i386__)\r
322 \r
323 #define IS_LITTLE_ENDIAN 1\r
324 #undef  IS_BIG_ENDIAN\r
325 \r
326 #define PR_BYTES_PER_BYTE   1\r
327 #define PR_BYTES_PER_SHORT  2\r
328 #define PR_BYTES_PER_INT    4\r
329 #define PR_BYTES_PER_INT64  8\r
330 #define PR_BYTES_PER_LONG   4\r
331 #define PR_BYTES_PER_FLOAT  4\r
332 #define PR_BYTES_PER_DOUBLE 8\r
333 #define PR_BYTES_PER_WORD   4\r
334 #define PR_BYTES_PER_DWORD  8\r
335 \r
336 #define PR_BITS_PER_BYTE    8\r
337 #define PR_BITS_PER_SHORT   16\r
338 #define PR_BITS_PER_INT     32\r
339 #define PR_BITS_PER_INT64   64\r
340 #define PR_BITS_PER_LONG    32\r
341 #define PR_BITS_PER_FLOAT   32\r
342 #define PR_BITS_PER_DOUBLE  64\r
343 #define PR_BITS_PER_WORD    32\r
344 \r
345 #define PR_BITS_PER_BYTE_LOG2   3\r
346 #define PR_BITS_PER_SHORT_LOG2  4\r
347 #define PR_BITS_PER_INT_LOG2    5\r
348 #define PR_BITS_PER_INT64_LOG2  6\r
349 #define PR_BITS_PER_LONG_LOG2   5\r
350 #define PR_BITS_PER_FLOAT_LOG2  5\r
351 #define PR_BITS_PER_DOUBLE_LOG2 6\r
352 #define PR_BITS_PER_WORD_LOG2   5\r
353 \r
354 #define PR_ALIGN_OF_SHORT   2\r
355 #define PR_ALIGN_OF_INT     4\r
356 #define PR_ALIGN_OF_LONG    4\r
357 #define PR_ALIGN_OF_INT64   4\r
358 #define PR_ALIGN_OF_FLOAT   4\r
359 #define PR_ALIGN_OF_DOUBLE  4\r
360 #define PR_ALIGN_OF_POINTER 4\r
361 #define PR_ALIGN_OF_WORD    4\r
362 \r
363 #define PR_BYTES_PER_WORD_LOG2   2\r
364 #define PR_BYTES_PER_DWORD_LOG2  3\r
365 \r
366 #elif defined(__mips__)\r
367 \r
368 #ifdef __MIPSEB__\r
369 #define IS_BIG_ENDIAN 1\r
370 #undef  IS_LITTLE_ENDIAN\r
371 #elif defined(__MIPSEL__)\r
372 #define IS_LITTLE_ENDIAN 1\r
373 #undef  IS_BIG_ENDIAN\r
374 #else\r
375 #error "Unknown MIPS endianness."\r
376 #endif\r
377 \r
378 #define PR_BYTES_PER_BYTE   1\r
379 #define PR_BYTES_PER_SHORT  2\r
380 #define PR_BYTES_PER_INT    4\r
381 #define PR_BYTES_PER_INT64  8\r
382 #define PR_BYTES_PER_LONG   4\r
383 #define PR_BYTES_PER_FLOAT  4\r
384 #define PR_BYTES_PER_DOUBLE 8\r
385 #define PR_BYTES_PER_WORD   4\r
386 #define PR_BYTES_PER_DWORD  8\r
387 \r
388 #define PR_BITS_PER_BYTE    8\r
389 #define PR_BITS_PER_SHORT   16\r
390 #define PR_BITS_PER_INT     32\r
391 #define PR_BITS_PER_INT64   64\r
392 #define PR_BITS_PER_LONG    32\r
393 #define PR_BITS_PER_FLOAT   32\r
394 #define PR_BITS_PER_DOUBLE  64\r
395 #define PR_BITS_PER_WORD    32\r
396 \r
397 #define PR_BITS_PER_BYTE_LOG2   3\r
398 #define PR_BITS_PER_SHORT_LOG2  4\r
399 #define PR_BITS_PER_INT_LOG2    5\r
400 #define PR_BITS_PER_INT64_LOG2  6\r
401 #define PR_BITS_PER_LONG_LOG2   5\r
402 #define PR_BITS_PER_FLOAT_LOG2  5\r
403 #define PR_BITS_PER_DOUBLE_LOG2 6\r
404 #define PR_BITS_PER_WORD_LOG2   5\r
405 \r
406 #define PR_ALIGN_OF_SHORT   2\r
407 #define PR_ALIGN_OF_INT     4\r
408 #define PR_ALIGN_OF_LONG    4\r
409 #define PR_ALIGN_OF_INT64   8\r
410 #define PR_ALIGN_OF_FLOAT   4\r
411 #define PR_ALIGN_OF_DOUBLE  8\r
412 #define PR_ALIGN_OF_POINTER 4\r
413 #define PR_ALIGN_OF_WORD    4\r
414 \r
415 #define PR_BYTES_PER_WORD_LOG2   2\r
416 #define PR_BYTES_PER_DWORD_LOG2  3\r
417 \r
418 #elif defined(__arm__)\r
419 \r
420 #define IS_LITTLE_ENDIAN 1\r
421 #undef  IS_BIG_ENDIAN\r
422 \r
423 #define PR_BYTES_PER_BYTE   1\r
424 #define PR_BYTES_PER_SHORT  2\r
425 #define PR_BYTES_PER_INT    4\r
426 #define PR_BYTES_PER_INT64  8\r
427 #define PR_BYTES_PER_LONG   4\r
428 #define PR_BYTES_PER_FLOAT  4\r
429 #define PR_BYTES_PER_DOUBLE 8\r
430 #define PR_BYTES_PER_WORD   4\r
431 #define PR_BYTES_PER_DWORD  8\r
432 \r
433 #define PR_BITS_PER_BYTE    8\r
434 #define PR_BITS_PER_SHORT   16\r
435 #define PR_BITS_PER_INT     32\r
436 #define PR_BITS_PER_INT64   64\r
437 #define PR_BITS_PER_LONG    32\r
438 #define PR_BITS_PER_FLOAT   32\r
439 #define PR_BITS_PER_DOUBLE  64\r
440 #define PR_BITS_PER_WORD    32\r
441 \r
442 #define PR_BITS_PER_BYTE_LOG2   3\r
443 #define PR_BITS_PER_SHORT_LOG2  4\r
444 #define PR_BITS_PER_INT_LOG2    5\r
445 #define PR_BITS_PER_INT64_LOG2  6\r
446 #define PR_BITS_PER_LONG_LOG2   5\r
447 #define PR_BITS_PER_FLOAT_LOG2  5\r
448 #define PR_BITS_PER_DOUBLE_LOG2 6\r
449 #define PR_BITS_PER_WORD_LOG2   5\r
450 \r
451 #define PR_ALIGN_OF_SHORT   2\r
452 #define PR_ALIGN_OF_INT     4\r
453 #define PR_ALIGN_OF_LONG    4\r
454 #define PR_ALIGN_OF_INT64   4\r
455 #define PR_ALIGN_OF_FLOAT   4\r
456 #define PR_ALIGN_OF_DOUBLE  4\r
457 #define PR_ALIGN_OF_POINTER 4\r
458 #define PR_ALIGN_OF_WORD    4\r
459 \r
460 #define PR_BYTES_PER_WORD_LOG2   2\r
461 #define PR_BYTES_PER_DWORD_LOG2  3\r
462 \r
463 #elif defined(__hppa__)\r
464 \r
465 #undef  IS_LITTLE_ENDIAN\r
466 #define IS_BIG_ENDIAN    1\r
467 \r
468 #define PR_BYTES_PER_BYTE   1\r
469 #define PR_BYTES_PER_SHORT  2\r
470 #define PR_BYTES_PER_INT    4\r
471 #define PR_BYTES_PER_INT64  8\r
472 #define PR_BYTES_PER_LONG   4\r
473 #define PR_BYTES_PER_FLOAT  4\r
474 #define PR_BYTES_PER_DOUBLE 8\r
475 #define PR_BYTES_PER_WORD   4\r
476 #define PR_BYTES_PER_DWORD  8\r
477 \r
478 #define PR_BITS_PER_BYTE    8\r
479 #define PR_BITS_PER_SHORT   16\r
480 #define PR_BITS_PER_INT     32\r
481 #define PR_BITS_PER_INT64   64\r
482 #define PR_BITS_PER_LONG    32\r
483 #define PR_BITS_PER_FLOAT   32\r
484 #define PR_BITS_PER_DOUBLE  64\r
485 #define PR_BITS_PER_WORD    32\r
486 \r
487 #define PR_BITS_PER_BYTE_LOG2   3\r
488 #define PR_BITS_PER_SHORT_LOG2  4\r
489 #define PR_BITS_PER_INT_LOG2    5\r
490 #define PR_BITS_PER_INT64_LOG2  6\r
491 #define PR_BITS_PER_LONG_LOG2   5\r
492 #define PR_BITS_PER_FLOAT_LOG2  5\r
493 #define PR_BITS_PER_DOUBLE_LOG2 6\r
494 #define PR_BITS_PER_WORD_LOG2   5\r
495 \r
496 #define PR_ALIGN_OF_SHORT   2\r
497 #define PR_ALIGN_OF_INT     4\r
498 #define PR_ALIGN_OF_LONG    4\r
499 #define PR_ALIGN_OF_INT64   8\r
500 #define PR_ALIGN_OF_FLOAT   4\r
501 #define PR_ALIGN_OF_DOUBLE  8\r
502 #define PR_ALIGN_OF_POINTER 4\r
503 #define PR_ALIGN_OF_WORD    4\r
504 \r
505 #define PR_BYTES_PER_WORD_LOG2   2\r
506 #define PR_BYTES_PER_DWORD_LOG2  3\r
507 \r
508 #elif defined(__s390__)\r
509 \r
510 #define IS_BIG_ENDIAN 1\r
511 #undef  IS_LITTLE_ENDIAN\r
512 \r
513 #define PR_BYTES_PER_BYTE   1\r
514 #define PR_BYTES_PER_SHORT  2\r
515 #define PR_BYTES_PER_INT    4\r
516 #define PR_BYTES_PER_INT64  8\r
517 #define PR_BYTES_PER_LONG   4\r
518 #define PR_BYTES_PER_FLOAT  4\r
519 #define PR_BYTES_PER_DOUBLE 8\r
520 #define PR_BYTES_PER_WORD   4\r
521 #define PR_BYTES_PER_DWORD  8\r
522 \r
523 #define PR_BITS_PER_BYTE    8\r
524 #define PR_BITS_PER_SHORT   16\r
525 #define PR_BITS_PER_INT     32\r
526 #define PR_BITS_PER_INT64   64\r
527 #define PR_BITS_PER_LONG    32\r
528 #define PR_BITS_PER_FLOAT   32\r
529 #define PR_BITS_PER_DOUBLE  64\r
530 #define PR_BITS_PER_WORD    32\r
531 \r
532 #define PR_BITS_PER_BYTE_LOG2   3\r
533 #define PR_BITS_PER_SHORT_LOG2  4\r
534 #define PR_BITS_PER_INT_LOG2    5\r
535 #define PR_BITS_PER_INT64_LOG2  6\r
536 #define PR_BITS_PER_LONG_LOG2   5\r
537 #define PR_BITS_PER_FLOAT_LOG2  5\r
538 #define PR_BITS_PER_DOUBLE_LOG2 6\r
539 #define PR_BITS_PER_WORD_LOG2   5\r
540 \r
541 #define PR_ALIGN_OF_SHORT   2\r
542 #define PR_ALIGN_OF_INT     4\r
543 #define PR_ALIGN_OF_LONG    4\r
544 #define PR_ALIGN_OF_INT64   4\r
545 #define PR_ALIGN_OF_FLOAT   4\r
546 #define PR_ALIGN_OF_DOUBLE  4\r
547 #define PR_ALIGN_OF_POINTER 4\r
548 #define PR_ALIGN_OF_WORD    4\r
549 \r
550 #define PR_BYTES_PER_WORD_LOG2   2\r
551 #define PR_BYTES_PER_DWORD_LOG2  3\r
552 \r
553 #elif defined(__s390x__)\r
554 \r
555 #define IS_BIG_ENDIAN 1\r
556 #undef  IS_LITTLE_ENDIAN\r
557 #define IS_64\r
558 \r
559 #define PR_BYTES_PER_BYTE   1\r
560 #define PR_BYTES_PER_SHORT  2\r
561 #define PR_BYTES_PER_INT    4\r
562 #define PR_BYTES_PER_INT64  8\r
563 #define PR_BYTES_PER_LONG   8\r
564 #define PR_BYTES_PER_FLOAT  4\r
565 #define PR_BYTES_PER_DOUBLE 8\r
566 #define PR_BYTES_PER_WORD   8\r
567 #define PR_BYTES_PER_DWORD  8\r
568 \r
569 #define PR_BITS_PER_BYTE    8\r
570 #define PR_BITS_PER_SHORT   16\r
571 #define PR_BITS_PER_INT     32\r
572 #define PR_BITS_PER_INT64   64\r
573 #define PR_BITS_PER_LONG    64\r
574 #define PR_BITS_PER_FLOAT   32\r
575 #define PR_BITS_PER_DOUBLE  64\r
576 #define PR_BITS_PER_WORD    64\r
577 \r
578 #define PR_BITS_PER_BYTE_LOG2   3\r
579 #define PR_BITS_PER_SHORT_LOG2  4\r
580 #define PR_BITS_PER_INT_LOG2    5\r
581 #define PR_BITS_PER_INT64_LOG2  6\r
582 #define PR_BITS_PER_LONG_LOG2   6\r
583 #define PR_BITS_PER_FLOAT_LOG2  5\r
584 #define PR_BITS_PER_DOUBLE_LOG2 6\r
585 #define PR_BITS_PER_WORD_LOG2   6\r
586 \r
587 #define PR_ALIGN_OF_SHORT   2\r
588 #define PR_ALIGN_OF_INT     4\r
589 #define PR_ALIGN_OF_LONG    8\r
590 #define PR_ALIGN_OF_INT64   8\r
591 #define PR_ALIGN_OF_FLOAT   4\r
592 #define PR_ALIGN_OF_DOUBLE  8\r
593 #define PR_ALIGN_OF_POINTER 8\r
594 #define PR_ALIGN_OF_WORD    8\r
595 \r
596 #define PR_BYTES_PER_WORD_LOG2   3\r
597 #define PR_BYTES_PER_DWORD_LOG2  3\r
598 \r
599 #else\r
600 \r
601 #error "Unknown CPU architecture"\r
602 \r
603 #endif\r
604 \r
605 #define HAVE_LONG_LONG\r
606 #if PR_ALIGN_OF_DOUBLE == 8\r
607 #define HAVE_ALIGNED_DOUBLES\r
608 #endif\r
609 #if PR_ALIGN_OF_INT64 == 8\r
610 #define HAVE_ALIGNED_LONGLONGS\r
611 #endif\r
612 \r
613 #ifndef NO_NSPR_10_SUPPORT\r
614 \r
615 #define BYTES_PER_BYTE          PR_BYTES_PER_BYTE\r
616 #define BYTES_PER_SHORT         PR_BYTES_PER_SHORT\r
617 #define BYTES_PER_INT           PR_BYTES_PER_INT\r
618 #define BYTES_PER_INT64         PR_BYTES_PER_INT64\r
619 #define BYTES_PER_LONG          PR_BYTES_PER_LONG\r
620 #define BYTES_PER_FLOAT         PR_BYTES_PER_FLOAT\r
621 #define BYTES_PER_DOUBLE        PR_BYTES_PER_DOUBLE\r
622 #define BYTES_PER_WORD          PR_BYTES_PER_WORD\r
623 #define BYTES_PER_DWORD         PR_BYTES_PER_DWORD\r
624 \r
625 #define BITS_PER_BYTE           PR_BITS_PER_BYTE\r
626 #define BITS_PER_SHORT          PR_BITS_PER_SHORT\r
627 #define BITS_PER_INT            PR_BITS_PER_INT\r
628 #define BITS_PER_INT64          PR_BITS_PER_INT64\r
629 #define BITS_PER_LONG           PR_BITS_PER_LONG\r
630 #define BITS_PER_FLOAT          PR_BITS_PER_FLOAT\r
631 #define BITS_PER_DOUBLE         PR_BITS_PER_DOUBLE\r
632 #define BITS_PER_WORD           PR_BITS_PER_WORD\r
633 \r
634 #define BITS_PER_BYTE_LOG2      PR_BITS_PER_BYTE_LOG2\r
635 #define BITS_PER_SHORT_LOG2     PR_BITS_PER_SHORT_LOG2\r
636 #define BITS_PER_INT_LOG2       PR_BITS_PER_INT_LOG2\r
637 #define BITS_PER_INT64_LOG2     PR_BITS_PER_INT64_LOG2\r
638 #define BITS_PER_LONG_LOG2      PR_BITS_PER_LONG_LOG2\r
639 #define BITS_PER_FLOAT_LOG2     PR_BITS_PER_FLOAT_LOG2\r
640 #define BITS_PER_DOUBLE_LOG2    PR_BITS_PER_DOUBLE_LOG2\r
641 #define BITS_PER_WORD_LOG2      PR_BITS_PER_WORD_LOG2\r
642 \r
643 #define ALIGN_OF_SHORT          PR_ALIGN_OF_SHORT\r
644 #define ALIGN_OF_INT            PR_ALIGN_OF_INT\r
645 #define ALIGN_OF_LONG           PR_ALIGN_OF_LONG\r
646 #define ALIGN_OF_INT64          PR_ALIGN_OF_INT64\r
647 #define ALIGN_OF_FLOAT          PR_ALIGN_OF_FLOAT\r
648 #define ALIGN_OF_DOUBLE         PR_ALIGN_OF_DOUBLE\r
649 #define ALIGN_OF_POINTER        PR_ALIGN_OF_POINTER\r
650 #define ALIGN_OF_WORD           PR_ALIGN_OF_WORD\r
651 \r
652 #define BYTES_PER_WORD_LOG2     PR_BYTES_PER_WORD_LOG2\r
653 #define BYTES_PER_DWORD_LOG2    PR_BYTES_PER_DWORD_LOG2\r
654 #define WORDS_PER_DWORD_LOG2    PR_WORDS_PER_DWORD_LOG2\r
655 \r
656 #endif /* NO_NSPR_10_SUPPORT */\r
657 \r
658 #endif /* nspr_cpucfg___ */\r