| 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 /* ***** BEGIN LICENSE BLOCK ***** | 2 /* ***** BEGIN LICENSE BLOCK ***** |
| 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 | 3 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 * | 4 * |
| 5 * The contents of this file are subject to the Mozilla Public License Version | 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 | 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 | 7 * the License. You may obtain a copy of the License at |
| 8 * http://www.mozilla.org/MPL/ | 8 * http://www.mozilla.org/MPL/ |
| 9 * | 9 * |
| 10 * Software distributed under the License is distributed on an "AS IS" basis, | 10 * Software distributed under the License is distributed on an "AS IS" basis, |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 #define PR_ALIGN_OF_INT64 8 | 99 #define PR_ALIGN_OF_INT64 8 |
| 100 #define PR_ALIGN_OF_FLOAT 4 | 100 #define PR_ALIGN_OF_FLOAT 4 |
| 101 #define PR_ALIGN_OF_WORD 4 | 101 #define PR_ALIGN_OF_WORD 4 |
| 102 #define PR_ALIGN_OF_DWORD 8 | 102 #define PR_ALIGN_OF_DWORD 8 |
| 103 #define PR_ALIGN_OF_DOUBLE 4 | 103 #define PR_ALIGN_OF_DOUBLE 4 |
| 104 #define PR_ALIGN_OF_POINTER 4 | 104 #define PR_ALIGN_OF_POINTER 4 |
| 105 | 105 |
| 106 #define PR_BYTES_PER_WORD_LOG2 2 | 106 #define PR_BYTES_PER_WORD_LOG2 2 |
| 107 #define PR_BYTES_PER_DWORD_LOG2 3 | 107 #define PR_BYTES_PER_DWORD_LOG2 3 |
| 108 | 108 |
| 109 #elif defined(_ALPHA_) | 109 #elif defined(_M_X64) || defined(_M_AMD64) || defined(_AMD64_) |
| 110 | |
| 111 #define IS_LITTLE_ENDIAN 1 | |
| 112 #undef IS_BIG_ENDIAN | |
| 113 | |
| 114 #define PR_BYTES_PER_BYTE 1 | |
| 115 #define PR_BYTES_PER_SHORT 2 | |
| 116 #define PR_BYTES_PER_INT 4 | |
| 117 #define PR_BYTES_PER_INT64 8 | |
| 118 #define PR_BYTES_PER_LONG 4 | |
| 119 #define PR_BYTES_PER_FLOAT 4 | |
| 120 #define PR_BYTES_PER_DOUBLE 8 | |
| 121 #define PR_BYTES_PER_WORD 4 | |
| 122 #define PR_BYTES_PER_DWORD 8 | |
| 123 | |
| 124 #define PR_BITS_PER_BYTE 8 | |
| 125 #define PR_BITS_PER_SHORT 16 | |
| 126 #define PR_BITS_PER_INT 32 | |
| 127 #define PR_BITS_PER_INT64 64 | |
| 128 #define PR_BITS_PER_LONG 32 | |
| 129 #define PR_BITS_PER_FLOAT 32 | |
| 130 #define PR_BITS_PER_DOUBLE 64 | |
| 131 #define PR_BITS_PER_WORD 32 | |
| 132 | |
| 133 #define PR_BITS_PER_BYTE_LOG2 3 | |
| 134 #define PR_BITS_PER_SHORT_LOG2 4 | |
| 135 #define PR_BITS_PER_INT_LOG2 5 | |
| 136 #define PR_BITS_PER_INT64_LOG2 6 | |
| 137 #define PR_BITS_PER_LONG_LOG2 5 | |
| 138 #define PR_BITS_PER_FLOAT_LOG2 5 | |
| 139 #define PR_BITS_PER_DOUBLE_LOG2 6 | |
| 140 #define PR_BITS_PER_WORD_LOG2 5 | |
| 141 | |
| 142 #define PR_BYTES_PER_WORD_LOG2 2 | |
| 143 #define PR_BYTES_PER_DWORD_LOG2 3 | |
| 144 | |
| 145 #define PR_ALIGN_OF_SHORT 2 | |
| 146 #define PR_ALIGN_OF_INT 4 | |
| 147 #define PR_ALIGN_OF_LONG 4 | |
| 148 #define PR_ALIGN_OF_INT64 8 | |
| 149 #define PR_ALIGN_OF_FLOAT 4 | |
| 150 #define PR_ALIGN_OF_DOUBLE 8 | |
| 151 #define PR_ALIGN_OF_POINTER 4 | |
| 152 | |
| 153 #elif defined(_AMD64_) | |
| 154 | 110 |
| 155 #define IS_LITTLE_ENDIAN 1 | 111 #define IS_LITTLE_ENDIAN 1 |
| 156 #undef IS_BIG_ENDIAN | 112 #undef IS_BIG_ENDIAN |
| 157 #define IS_64 | 113 #define IS_64 |
| 158 | 114 |
| 159 #define PR_BYTES_PER_BYTE 1 | 115 #define PR_BYTES_PER_BYTE 1 |
| 160 #define PR_BYTES_PER_SHORT 2 | 116 #define PR_BYTES_PER_SHORT 2 |
| 161 #define PR_BYTES_PER_INT 4 | 117 #define PR_BYTES_PER_INT 4 |
| 162 #define PR_BYTES_PER_INT64 8 | 118 #define PR_BYTES_PER_INT64 8 |
| 163 #define PR_BYTES_PER_LONG 4 | 119 #define PR_BYTES_PER_LONG 4 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 192 #define PR_ALIGN_OF_INT64 8 | 148 #define PR_ALIGN_OF_INT64 8 |
| 193 #define PR_ALIGN_OF_FLOAT 4 | 149 #define PR_ALIGN_OF_FLOAT 4 |
| 194 #define PR_ALIGN_OF_WORD 8 | 150 #define PR_ALIGN_OF_WORD 8 |
| 195 #define PR_ALIGN_OF_DWORD 8 | 151 #define PR_ALIGN_OF_DWORD 8 |
| 196 #define PR_ALIGN_OF_DOUBLE 8 | 152 #define PR_ALIGN_OF_DOUBLE 8 |
| 197 #define PR_ALIGN_OF_POINTER 8 | 153 #define PR_ALIGN_OF_POINTER 8 |
| 198 | 154 |
| 199 #define PR_BYTES_PER_WORD_LOG2 3 | 155 #define PR_BYTES_PER_WORD_LOG2 3 |
| 200 #define PR_BYTES_PER_DWORD_LOG2 3 | 156 #define PR_BYTES_PER_DWORD_LOG2 3 |
| 201 | 157 |
| 202 #elif defined(_IA64_) | 158 #elif defined(_M_IA64) || defined(_IA64_) |
| 203 | 159 |
| 204 #define IS_LITTLE_ENDIAN 1 | 160 #define IS_LITTLE_ENDIAN 1 |
| 205 #undef IS_BIG_ENDIAN | 161 #undef IS_BIG_ENDIAN |
| 206 #define IS_64 | 162 #define IS_64 |
| 207 | 163 |
| 208 #define PR_BYTES_PER_BYTE 1 | 164 #define PR_BYTES_PER_BYTE 1 |
| 209 #define PR_BYTES_PER_SHORT 2 | 165 #define PR_BYTES_PER_SHORT 2 |
| 210 #define PR_BYTES_PER_INT 4 | 166 #define PR_BYTES_PER_INT 4 |
| 211 #define PR_BYTES_PER_INT64 8 | 167 #define PR_BYTES_PER_INT64 8 |
| 212 #define PR_BYTES_PER_LONG 4 | 168 #define PR_BYTES_PER_LONG 4 |
| (...skipping 28 matching lines...) Expand all Loading... |
| 241 #define PR_ALIGN_OF_INT64 8 | 197 #define PR_ALIGN_OF_INT64 8 |
| 242 #define PR_ALIGN_OF_FLOAT 4 | 198 #define PR_ALIGN_OF_FLOAT 4 |
| 243 #define PR_ALIGN_OF_WORD 8 | 199 #define PR_ALIGN_OF_WORD 8 |
| 244 #define PR_ALIGN_OF_DWORD 8 | 200 #define PR_ALIGN_OF_DWORD 8 |
| 245 #define PR_ALIGN_OF_DOUBLE 8 | 201 #define PR_ALIGN_OF_DOUBLE 8 |
| 246 #define PR_ALIGN_OF_POINTER 8 | 202 #define PR_ALIGN_OF_POINTER 8 |
| 247 | 203 |
| 248 #define PR_BYTES_PER_WORD_LOG2 3 | 204 #define PR_BYTES_PER_WORD_LOG2 3 |
| 249 #define PR_BYTES_PER_DWORD_LOG2 3 | 205 #define PR_BYTES_PER_DWORD_LOG2 3 |
| 250 | 206 |
| 251 #elif defined(_ARM_) | 207 #elif defined(_M_ARM) || defined(_ARM_) |
| 252 | 208 |
| 253 #define IS_LITTLE_ENDIAN 1 | 209 #define IS_LITTLE_ENDIAN 1 |
| 254 #undef IS_BIG_ENDIAN | 210 #undef IS_BIG_ENDIAN |
| 255 | 211 |
| 256 #define PR_BYTES_PER_BYTE 1 | 212 #define PR_BYTES_PER_BYTE 1 |
| 257 #define PR_BYTES_PER_SHORT 2 | 213 #define PR_BYTES_PER_SHORT 2 |
| 258 #define PR_BYTES_PER_INT 4 | 214 #define PR_BYTES_PER_INT 4 |
| 259 #define PR_BYTES_PER_INT64 8 | 215 #define PR_BYTES_PER_INT64 8 |
| 260 #define PR_BYTES_PER_LONG 4 | 216 #define PR_BYTES_PER_LONG 4 |
| 261 #define PR_BYTES_PER_FLOAT 4 | 217 #define PR_BYTES_PER_FLOAT 4 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 345 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER | 301 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER |
| 346 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD | 302 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD |
| 347 | 303 |
| 348 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 | 304 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 |
| 349 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 | 305 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 |
| 350 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 | 306 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 |
| 351 | 307 |
| 352 #endif /* NO_NSPR_10_SUPPORT */ | 308 #endif /* NO_NSPR_10_SUPPORT */ |
| 353 | 309 |
| 354 #endif /* nspr_cpucfg___ */ | 310 #endif /* nspr_cpucfg___ */ |
| OLD | NEW |