OLD | NEW |
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ | 1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 /* This Source Code Form is subject to the terms of the Mozilla Public | 2 /* This Source Code Form is subject to the terms of the Mozilla Public |
3 * License, v. 2.0. If a copy of the MPL was not distributed with this | 3 * License, v. 2.0. If a copy of the MPL was not distributed with this |
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ | 4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
5 | 5 |
6 #ifndef nspr_cpucfg___ | 6 #ifndef nspr_cpucfg___ |
7 #define nspr_cpucfg___ | 7 #define nspr_cpucfg___ |
8 | 8 |
9 #ifndef XP_PC | 9 #ifndef XP_PC |
10 #define XP_PC | 10 #define XP_PC |
11 #endif | 11 #endif |
12 | 12 |
13 #ifndef WIN32 | 13 #ifndef WIN32 |
14 #define WIN32 | 14 #define WIN32 |
15 #endif | 15 #endif |
16 | 16 |
17 #ifdef _WIN32_WCE | |
18 #ifndef WINCE | |
19 #define WINCE | |
20 #endif | |
21 #else | |
22 #ifndef WIN95 | 17 #ifndef WIN95 |
23 #define WIN95 | 18 #define WIN95 |
24 #endif | 19 #endif |
25 #endif | |
26 | 20 |
27 #define PR_AF_INET6 23 /* same as AF_INET6 */ | 21 #define PR_AF_INET6 23 /* same as AF_INET6 */ |
28 | 22 |
29 #if defined(_M_IX86) || defined(_X86_) | 23 #if defined(_M_IX86) || defined(_X86_) |
30 | 24 |
31 #define IS_LITTLE_ENDIAN 1 | 25 #define IS_LITTLE_ENDIAN 1 |
32 #undef IS_BIG_ENDIAN | 26 #undef IS_BIG_ENDIAN |
33 | 27 |
34 #define PR_BYTES_PER_BYTE 1 | 28 #define PR_BYTES_PER_BYTE 1 |
35 #define PR_BYTES_PER_SHORT 2 | 29 #define PR_BYTES_PER_SHORT 2 |
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
207 #define PR_BITS_PER_DWORD_LOG2 6 | 201 #define PR_BITS_PER_DWORD_LOG2 6 |
208 #define PR_BITS_PER_DOUBLE_LOG2 6 | 202 #define PR_BITS_PER_DOUBLE_LOG2 6 |
209 | 203 |
210 #define PR_ALIGN_OF_SHORT 2 | 204 #define PR_ALIGN_OF_SHORT 2 |
211 #define PR_ALIGN_OF_INT 4 | 205 #define PR_ALIGN_OF_INT 4 |
212 #define PR_ALIGN_OF_LONG 4 | 206 #define PR_ALIGN_OF_LONG 4 |
213 #define PR_ALIGN_OF_INT64 8 | 207 #define PR_ALIGN_OF_INT64 8 |
214 #define PR_ALIGN_OF_FLOAT 4 | 208 #define PR_ALIGN_OF_FLOAT 4 |
215 #define PR_ALIGN_OF_WORD 4 | 209 #define PR_ALIGN_OF_WORD 4 |
216 #define PR_ALIGN_OF_DWORD 8 | 210 #define PR_ALIGN_OF_DWORD 8 |
217 #define PR_ALIGN_OF_DOUBLE 4 | 211 #define PR_ALIGN_OF_DOUBLE 8 |
218 #define PR_ALIGN_OF_POINTER 4 | 212 #define PR_ALIGN_OF_POINTER 4 |
219 | 213 |
220 #define PR_BYTES_PER_WORD_LOG2 2 | 214 #define PR_BYTES_PER_WORD_LOG2 2 |
221 #define PR_BYTES_PER_DWORD_LOG2 3 | 215 #define PR_BYTES_PER_DWORD_LOG2 3 |
222 | 216 |
223 #else /* defined(_M_IX86) || defined(_X86_) */ | 217 #else /* defined(_M_IX86) || defined(_X86_) */ |
224 | 218 |
225 #error unknown processor architecture | 219 #error unknown processor architecture |
226 | 220 |
227 #endif /* defined(_M_IX86) || defined(_X86_) */ | 221 #endif /* defined(_M_IX86) || defined(_X86_) */ |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER | 263 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER |
270 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD | 264 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD |
271 | 265 |
272 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 | 266 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 |
273 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 | 267 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 |
274 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 | 268 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 |
275 | 269 |
276 #endif /* NO_NSPR_10_SUPPORT */ | 270 #endif /* NO_NSPR_10_SUPPORT */ |
277 | 271 |
278 #endif /* nspr_cpucfg___ */ | 272 #endif /* nspr_cpucfg___ */ |
OLD | NEW |