Fix Centurion name.
[0ad.git] / libraries / source / spidermonkey / include-win32-release / nspr / md / _darwin.cfg
blob12f314fef84cc499d02aba0f854b04503b4ff910
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_UNIX\r
10 #define XP_UNIX\r
11 #endif\r
13 #define PR_AF_INET6 30  /* same as AF_INET6 */\r
15 #ifdef __LITTLE_ENDIAN__\r
16 #undef IS_BIG_ENDIAN\r
17 #define  IS_LITTLE_ENDIAN 1\r
18 #else\r
19 #undef IS_LITTLE_ENDIAN\r
20 #define  IS_BIG_ENDIAN 1\r
21 #endif\r
23 #ifdef __LP64__\r
24 #define IS_64\r
25 #endif\r
27 #ifndef HAVE_LONG_LONG\r
28 #define HAVE_LONG_LONG\r
29 #endif\r
30 #undef  HAVE_ALIGNED_DOUBLES\r
31 #define HAVE_ALIGNED_LONGLONGS 1\r
33 #ifdef IS_64\r
35 #define PR_BYTES_PER_BYTE   1\r
36 #define PR_BYTES_PER_SHORT  2\r
37 #define PR_BYTES_PER_INT    4\r
38 #define PR_BYTES_PER_INT64  8\r
39 #define PR_BYTES_PER_LONG   8\r
40 #define PR_BYTES_PER_FLOAT  4\r
41 #define PR_BYTES_PER_DOUBLE 8\r
42 #define PR_BYTES_PER_WORD   8\r
43 #define PR_BYTES_PER_DWORD  8\r
45 #define PR_BITS_PER_BYTE    8\r
46 #define PR_BITS_PER_SHORT   16\r
47 #define PR_BITS_PER_INT     32\r
48 #define PR_BITS_PER_INT64   64\r
49 #define PR_BITS_PER_LONG    64\r
50 #define PR_BITS_PER_FLOAT   32\r
51 #define PR_BITS_PER_DOUBLE  64\r
52 #define PR_BITS_PER_WORD    64\r
53 #define PR_BITS_PER_DWORD   64\r
55 #define PR_BITS_PER_BYTE_LOG2   3\r
56 #define PR_BITS_PER_SHORT_LOG2  4\r
57 #define PR_BITS_PER_INT_LOG2    5\r
58 #define PR_BITS_PER_INT64_LOG2  6\r
59 #define PR_BITS_PER_LONG_LOG2   6\r
60 #define PR_BITS_PER_FLOAT_LOG2  5\r
61 #define PR_BITS_PER_DOUBLE_LOG2 6\r
62 #define PR_BITS_PER_WORD_LOG2   6\r
63 #define PR_BITS_PER_DWORD_LOG2  6\r
65 #define PR_ALIGN_OF_SHORT   2\r
66 #define PR_ALIGN_OF_INT     4\r
67 #define PR_ALIGN_OF_LONG    8\r
68 #define PR_ALIGN_OF_INT64   8\r
69 #define PR_ALIGN_OF_FLOAT   4\r
70 #define PR_ALIGN_OF_DOUBLE  8\r
71 #define PR_ALIGN_OF_POINTER 8\r
72 #define PR_ALIGN_OF_WORD    8\r
73 #define PR_ALIGN_OF_DWORD   8\r
75 #else /* 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_DOUBLE 8\r
84 #define PR_BYTES_PER_WORD   4\r
85 #define PR_BYTES_PER_DWORD  8\r
86 #define PR_BYTES_PER_WORD_LOG2   2\r
87 #define PR_BYTES_PER_DWORD_LOG2  3\r
89 #define PR_BITS_PER_BYTE    8\r
90 #define PR_BITS_PER_SHORT   16\r
91 #define PR_BITS_PER_INT     32\r
92 #define PR_BITS_PER_INT64   64\r
93 #define PR_BITS_PER_LONG    32\r
94 #define PR_BITS_PER_FLOAT   32\r
95 #define PR_BITS_PER_DOUBLE  64\r
96 #define PR_BITS_PER_WORD    32\r
97 #define PR_BITS_PER_DWORD   64\r
99 #define PR_BITS_PER_BYTE_LOG2   3\r
100 #define PR_BITS_PER_SHORT_LOG2  4\r
101 #define PR_BITS_PER_INT_LOG2    5\r
102 #define PR_BITS_PER_INT64_LOG2  6\r
103 #define PR_BITS_PER_LONG_LOG2   5\r
104 #define PR_BITS_PER_FLOAT_LOG2  5\r
105 #define PR_BITS_PER_DOUBLE_LOG2 6\r
106 #define PR_BITS_PER_WORD_LOG2   5\r
108 #define PR_ALIGN_OF_SHORT   2\r
109 #define PR_ALIGN_OF_INT     4\r
110 #define PR_ALIGN_OF_LONG    4\r
111 #define PR_ALIGN_OF_INT64   4\r
112 #define PR_ALIGN_OF_FLOAT   4\r
113 #define PR_ALIGN_OF_DOUBLE  4\r
114 #define PR_ALIGN_OF_POINTER 4\r
115 #define PR_ALIGN_OF_WORD    4\r
117 #endif /* IS_64 */\r
119 #ifndef NO_NSPR_10_SUPPORT\r
121 #define BYTES_PER_BYTE          PR_BYTES_PER_BYTE\r
122 #define BYTES_PER_SHORT         PR_BYTES_PER_SHORT\r
123 #define BYTES_PER_INT           PR_BYTES_PER_INT\r
124 #define BYTES_PER_INT64         PR_BYTES_PER_INT64\r
125 #define BYTES_PER_LONG          PR_BYTES_PER_LONG\r
126 #define BYTES_PER_FLOAT         PR_BYTES_PER_FLOAT\r
127 #define BYTES_PER_DOUBLE        PR_BYTES_PER_DOUBLE\r
128 #define BYTES_PER_WORD          PR_BYTES_PER_WORD\r
129 #define BYTES_PER_DWORD         PR_BYTES_PER_DWORD\r
131 #define BITS_PER_BYTE           PR_BITS_PER_BYTE\r
132 #define BITS_PER_SHORT          PR_BITS_PER_SHORT\r
133 #define BITS_PER_INT            PR_BITS_PER_INT\r
134 #define BITS_PER_INT64          PR_BITS_PER_INT64\r
135 #define BITS_PER_LONG           PR_BITS_PER_LONG\r
136 #define BITS_PER_FLOAT          PR_BITS_PER_FLOAT\r
137 #define BITS_PER_DOUBLE         PR_BITS_PER_DOUBLE\r
138 #define BITS_PER_WORD           PR_BITS_PER_WORD\r
140 #define BITS_PER_BYTE_LOG2      PR_BITS_PER_BYTE_LOG2\r
141 #define BITS_PER_SHORT_LOG2     PR_BITS_PER_SHORT_LOG2\r
142 #define BITS_PER_INT_LOG2       PR_BITS_PER_INT_LOG2\r
143 #define BITS_PER_INT64_LOG2     PR_BITS_PER_INT64_LOG2\r
144 #define BITS_PER_LONG_LOG2      PR_BITS_PER_LONG_LOG2\r
145 #define BITS_PER_FLOAT_LOG2     PR_BITS_PER_FLOAT_LOG2\r
146 #define BITS_PER_DOUBLE_LOG2    PR_BITS_PER_DOUBLE_LOG2\r
147 #define BITS_PER_WORD_LOG2      PR_BITS_PER_WORD_LOG2\r
149 #define ALIGN_OF_SHORT          PR_ALIGN_OF_SHORT\r
150 #define ALIGN_OF_INT            PR_ALIGN_OF_INT\r
151 #define ALIGN_OF_LONG           PR_ALIGN_OF_LONG\r
152 #define ALIGN_OF_INT64          PR_ALIGN_OF_INT64\r
153 #define ALIGN_OF_FLOAT          PR_ALIGN_OF_FLOAT\r
154 #define ALIGN_OF_DOUBLE         PR_ALIGN_OF_DOUBLE\r
155 #define ALIGN_OF_POINTER        PR_ALIGN_OF_POINTER\r
156 #define ALIGN_OF_WORD           PR_ALIGN_OF_WORD\r
158 #define BYTES_PER_WORD_LOG2     PR_BYTES_PER_WORD_LOG2\r
159 #define BYTES_PER_DWORD_LOG2    PR_BYTES_PER_DWORD_LOG2\r
160 #define WORDS_PER_DWORD_LOG2    PR_WORDS_PER_DWORD_LOG2\r
162 #endif /* NO_NSPR_10_SUPPORT */\r
164 #endif /* nspr_cpucfg___ */\r