| 1 |
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
| 2 |
/* ***** BEGIN LICENSE BLOCK ***** |
| 3 |
* Version: MPL 1.1/GPL 2.0/LGPL 2.1 |
| 4 |
* |
| 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 |
| 7 |
* the License. You may obtain a copy of the License at |
| 8 |
* http://www.mozilla.org/MPL/ |
| 9 |
* |
| 10 |
* Software distributed under the License is distributed on an "AS IS" basis, |
| 11 |
* WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License |
| 12 |
* for the specific language governing rights and limitations under the |
| 13 |
* License. |
| 14 |
* |
| 15 |
* The Original Code is the Netscape Portable Runtime (NSPR). |
| 16 |
* |
| 17 |
* The Initial Developer of the Original Code is |
| 18 |
* Netscape Communications Corporation. |
| 19 |
* Portions created by the Initial Developer are Copyright (C) 1998-2000 |
| 20 |
* the Initial Developer. All Rights Reserved. |
| 21 |
* |
| 22 |
* Contributor(s): |
| 23 |
* |
| 24 |
* Alternatively, the contents of this file may be used under the terms of |
| 25 |
* either the GNU General Public License Version 2 or later (the "GPL"), or |
| 26 |
* the GNU Lesser General Public License Version 2.1 or later (the "LGPL"), |
| 27 |
* in which case the provisions of the GPL or the LGPL are applicable instead |
| 28 |
* of those above. If you wish to allow use of your version of this file only |
| 29 |
* under the terms of either the GPL or the LGPL, and not to allow others to |
| 30 |
* use your version of this file under the terms of the MPL, indicate your |
| 31 |
* decision by deleting the provisions above and replace them with the notice |
| 32 |
* and other provisions required by the GPL or the LGPL. If you do not delete |
| 33 |
* the provisions above, a recipient may use your version of this file under |
| 34 |
* the terms of any one of the MPL, the GPL or the LGPL. |
| 35 |
* |
| 36 |
* ***** END LICENSE BLOCK ***** */ |
| 37 |
|
| 38 |
#ifndef nspr_cpucfg___ |
| 39 |
#define nspr_cpucfg___ |
| 40 |
|
| 41 |
#ifndef XP_UNIX |
| 42 |
#define XP_UNIX |
| 43 |
#endif |
| 44 |
|
| 45 |
#ifndef LINUX |
| 46 |
#define LINUX |
| 47 |
#endif |
| 48 |
|
| 49 |
#define PR_AF_INET6 10 /* same as AF_INET6 */ |
| 50 |
|
| 51 |
#ifdef __powerpc64__ |
| 52 |
|
| 53 |
#ifdef __LITTLE_ENDIAN__ |
| 54 |
#undef IS_BIG_ENDIAN |
| 55 |
#define IS_LITTLE_ENDIAN 1 |
| 56 |
#else |
| 57 |
#undef IS_LITTLE_ENDIAN |
| 58 |
#define IS_BIG_ENDIAN 1 |
| 59 |
#endif |
| 60 |
#define IS_64 |
| 61 |
|
| 62 |
#define PR_BYTES_PER_BYTE 1 |
| 63 |
#define PR_BYTES_PER_SHORT 2 |
| 64 |
#define PR_BYTES_PER_INT 4 |
| 65 |
#define PR_BYTES_PER_INT64 8 |
| 66 |
#define PR_BYTES_PER_LONG 8 |
| 67 |
#define PR_BYTES_PER_FLOAT 4 |
| 68 |
#define PR_BYTES_PER_DOUBLE 8 |
| 69 |
#define PR_BYTES_PER_WORD 8 |
| 70 |
#define PR_BYTES_PER_DWORD 8 |
| 71 |
|
| 72 |
#define PR_BITS_PER_BYTE 8 |
| 73 |
#define PR_BITS_PER_SHORT 16 |
| 74 |
#define PR_BITS_PER_INT 32 |
| 75 |
#define PR_BITS_PER_INT64 64 |
| 76 |
#define PR_BITS_PER_LONG 64 |
| 77 |
#define PR_BITS_PER_FLOAT 32 |
| 78 |
#define PR_BITS_PER_DOUBLE 64 |
| 79 |
#define PR_BITS_PER_WORD 64 |
| 80 |
|
| 81 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 82 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 83 |
#define PR_BITS_PER_INT_LOG2 5 |
| 84 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 85 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 86 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 87 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 88 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 89 |
|
| 90 |
#define PR_ALIGN_OF_SHORT 2 |
| 91 |
#define PR_ALIGN_OF_INT 4 |
| 92 |
#define PR_ALIGN_OF_LONG 8 |
| 93 |
#define PR_ALIGN_OF_INT64 8 |
| 94 |
#define PR_ALIGN_OF_FLOAT 4 |
| 95 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 96 |
#define PR_ALIGN_OF_POINTER 8 |
| 97 |
#define PR_ALIGN_OF_WORD 8 |
| 98 |
|
| 99 |
#define PR_BYTES_PER_WORD_LOG2 3 |
| 100 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 101 |
|
| 102 |
#elif defined(__powerpc__) |
| 103 |
|
| 104 |
#undef IS_LITTLE_ENDIAN |
| 105 |
#define IS_BIG_ENDIAN 1 |
| 106 |
|
| 107 |
#define PR_BYTES_PER_BYTE 1 |
| 108 |
#define PR_BYTES_PER_SHORT 2 |
| 109 |
#define PR_BYTES_PER_INT 4 |
| 110 |
#define PR_BYTES_PER_INT64 8 |
| 111 |
#define PR_BYTES_PER_LONG 4 |
| 112 |
#define PR_BYTES_PER_FLOAT 4 |
| 113 |
#define PR_BYTES_PER_DOUBLE 8 |
| 114 |
#define PR_BYTES_PER_WORD 4 |
| 115 |
#define PR_BYTES_PER_DWORD 8 |
| 116 |
|
| 117 |
#define PR_BITS_PER_BYTE 8 |
| 118 |
#define PR_BITS_PER_SHORT 16 |
| 119 |
#define PR_BITS_PER_INT 32 |
| 120 |
#define PR_BITS_PER_INT64 64 |
| 121 |
#define PR_BITS_PER_LONG 32 |
| 122 |
#define PR_BITS_PER_FLOAT 32 |
| 123 |
#define PR_BITS_PER_DOUBLE 64 |
| 124 |
#define PR_BITS_PER_WORD 32 |
| 125 |
|
| 126 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 127 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 128 |
#define PR_BITS_PER_INT_LOG2 5 |
| 129 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 130 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 131 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 132 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 133 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 134 |
|
| 135 |
#define PR_ALIGN_OF_SHORT 2 |
| 136 |
#define PR_ALIGN_OF_INT 4 |
| 137 |
#define PR_ALIGN_OF_LONG 4 |
| 138 |
#define PR_ALIGN_OF_INT64 8 |
| 139 |
#define PR_ALIGN_OF_FLOAT 4 |
| 140 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 141 |
#define PR_ALIGN_OF_POINTER 4 |
| 142 |
#define PR_ALIGN_OF_WORD 4 |
| 143 |
|
| 144 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 145 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 146 |
|
| 147 |
#elif defined(__alpha) |
| 148 |
|
| 149 |
#define IS_LITTLE_ENDIAN 1 |
| 150 |
#undef IS_BIG_ENDIAN |
| 151 |
#define IS_64 |
| 152 |
|
| 153 |
#define PR_BYTES_PER_BYTE 1 |
| 154 |
#define PR_BYTES_PER_SHORT 2 |
| 155 |
#define PR_BYTES_PER_INT 4 |
| 156 |
#define PR_BYTES_PER_INT64 8 |
| 157 |
#define PR_BYTES_PER_LONG 8 |
| 158 |
#define PR_BYTES_PER_FLOAT 4 |
| 159 |
#define PR_BYTES_PER_DOUBLE 8 |
| 160 |
#define PR_BYTES_PER_WORD 8 |
| 161 |
#define PR_BYTES_PER_DWORD 8 |
| 162 |
|
| 163 |
#define PR_BITS_PER_BYTE 8 |
| 164 |
#define PR_BITS_PER_SHORT 16 |
| 165 |
#define PR_BITS_PER_INT 32 |
| 166 |
#define PR_BITS_PER_INT64 64 |
| 167 |
#define PR_BITS_PER_LONG 64 |
| 168 |
#define PR_BITS_PER_FLOAT 32 |
| 169 |
#define PR_BITS_PER_DOUBLE 64 |
| 170 |
#define PR_BITS_PER_WORD 64 |
| 171 |
|
| 172 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 173 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 174 |
#define PR_BITS_PER_INT_LOG2 5 |
| 175 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 176 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 177 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 178 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 179 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 180 |
|
| 181 |
#define PR_ALIGN_OF_SHORT 2 |
| 182 |
#define PR_ALIGN_OF_INT 4 |
| 183 |
#define PR_ALIGN_OF_LONG 8 |
| 184 |
#define PR_ALIGN_OF_INT64 8 |
| 185 |
#define PR_ALIGN_OF_FLOAT 4 |
| 186 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 187 |
#define PR_ALIGN_OF_POINTER 8 |
| 188 |
#define PR_ALIGN_OF_WORD 8 |
| 189 |
|
| 190 |
#define PR_BYTES_PER_WORD_LOG2 3 |
| 191 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 192 |
|
| 193 |
#elif defined(__ia64__) |
| 194 |
|
| 195 |
#define IS_LITTLE_ENDIAN 1 |
| 196 |
#undef IS_BIG_ENDIAN |
| 197 |
#define IS_64 |
| 198 |
|
| 199 |
#define PR_BYTES_PER_BYTE 1 |
| 200 |
#define PR_BYTES_PER_SHORT 2 |
| 201 |
#define PR_BYTES_PER_INT 4 |
| 202 |
#define PR_BYTES_PER_INT64 8 |
| 203 |
#define PR_BYTES_PER_LONG 8 |
| 204 |
#define PR_BYTES_PER_FLOAT 4 |
| 205 |
#define PR_BYTES_PER_DOUBLE 8 |
| 206 |
#define PR_BYTES_PER_WORD 8 |
| 207 |
#define PR_BYTES_PER_DWORD 8 |
| 208 |
|
| 209 |
#define PR_BITS_PER_BYTE 8 |
| 210 |
#define PR_BITS_PER_SHORT 16 |
| 211 |
#define PR_BITS_PER_INT 32 |
| 212 |
#define PR_BITS_PER_INT64 64 |
| 213 |
#define PR_BITS_PER_LONG 64 |
| 214 |
#define PR_BITS_PER_FLOAT 32 |
| 215 |
#define PR_BITS_PER_DOUBLE 64 |
| 216 |
#define PR_BITS_PER_WORD 64 |
| 217 |
|
| 218 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 219 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 220 |
#define PR_BITS_PER_INT_LOG2 5 |
| 221 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 222 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 223 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 224 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 225 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 226 |
|
| 227 |
#define PR_ALIGN_OF_SHORT 2 |
| 228 |
#define PR_ALIGN_OF_INT 4 |
| 229 |
#define PR_ALIGN_OF_LONG 8 |
| 230 |
#define PR_ALIGN_OF_INT64 8 |
| 231 |
#define PR_ALIGN_OF_FLOAT 4 |
| 232 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 233 |
#define PR_ALIGN_OF_POINTER 8 |
| 234 |
#define PR_ALIGN_OF_WORD 8 |
| 235 |
|
| 236 |
#define PR_BYTES_PER_WORD_LOG2 3 |
| 237 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 238 |
|
| 239 |
#elif defined(__x86_64__) && !defined(__ILP32__) |
| 240 |
|
| 241 |
#define IS_LITTLE_ENDIAN 1 |
| 242 |
#undef IS_BIG_ENDIAN |
| 243 |
#define IS_64 |
| 244 |
|
| 245 |
#define PR_BYTES_PER_BYTE 1 |
| 246 |
#define PR_BYTES_PER_SHORT 2 |
| 247 |
#define PR_BYTES_PER_INT 4 |
| 248 |
#define PR_BYTES_PER_INT64 8 |
| 249 |
#define PR_BYTES_PER_LONG 8 |
| 250 |
#define PR_BYTES_PER_FLOAT 4 |
| 251 |
#define PR_BYTES_PER_DOUBLE 8 |
| 252 |
#define PR_BYTES_PER_WORD 8 |
| 253 |
#define PR_BYTES_PER_DWORD 8 |
| 254 |
|
| 255 |
#define PR_BITS_PER_BYTE 8 |
| 256 |
#define PR_BITS_PER_SHORT 16 |
| 257 |
#define PR_BITS_PER_INT 32 |
| 258 |
#define PR_BITS_PER_INT64 64 |
| 259 |
#define PR_BITS_PER_LONG 64 |
| 260 |
#define PR_BITS_PER_FLOAT 32 |
| 261 |
#define PR_BITS_PER_DOUBLE 64 |
| 262 |
#define PR_BITS_PER_WORD 64 |
| 263 |
|
| 264 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 265 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 266 |
#define PR_BITS_PER_INT_LOG2 5 |
| 267 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 268 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 269 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 270 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 271 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 272 |
|
| 273 |
#define PR_ALIGN_OF_SHORT 2 |
| 274 |
#define PR_ALIGN_OF_INT 4 |
| 275 |
#define PR_ALIGN_OF_LONG 8 |
| 276 |
#define PR_ALIGN_OF_INT64 8 |
| 277 |
#define PR_ALIGN_OF_FLOAT 4 |
| 278 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 279 |
#define PR_ALIGN_OF_POINTER 8 |
| 280 |
#define PR_ALIGN_OF_WORD 8 |
| 281 |
|
| 282 |
#define PR_BYTES_PER_WORD_LOG2 3 |
| 283 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 284 |
|
| 285 |
#elif defined(__x86_64__) && defined(__ILP32__) |
| 286 |
|
| 287 |
#define IS_LITTLE_ENDIAN 1 |
| 288 |
#undef IS_BIG_ENDIAN |
| 289 |
|
| 290 |
#define PR_BYTES_PER_BYTE 1 |
| 291 |
#define PR_BYTES_PER_SHORT 2 |
| 292 |
#define PR_BYTES_PER_INT 4 |
| 293 |
#define PR_BYTES_PER_INT64 8 |
| 294 |
#define PR_BYTES_PER_LONG 4 |
| 295 |
#define PR_BYTES_PER_FLOAT 4 |
| 296 |
#define PR_BYTES_PER_DOUBLE 8 |
| 297 |
#define PR_BYTES_PER_WORD 8 |
| 298 |
#define PR_BYTES_PER_DWORD 8 |
| 299 |
|
| 300 |
#define PR_BITS_PER_BYTE 8 |
| 301 |
#define PR_BITS_PER_SHORT 16 |
| 302 |
#define PR_BITS_PER_INT 32 |
| 303 |
#define PR_BITS_PER_INT64 64 |
| 304 |
#define PR_BITS_PER_LONG 32 |
| 305 |
#define PR_BITS_PER_FLOAT 32 |
| 306 |
#define PR_BITS_PER_DOUBLE 64 |
| 307 |
#define PR_BITS_PER_WORD 64 |
| 308 |
|
| 309 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 310 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 311 |
#define PR_BITS_PER_INT_LOG2 5 |
| 312 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 313 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 314 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 315 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 316 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 317 |
|
| 318 |
#define PR_ALIGN_OF_SHORT 2 |
| 319 |
#define PR_ALIGN_OF_INT 4 |
| 320 |
#define PR_ALIGN_OF_LONG 4 |
| 321 |
#define PR_ALIGN_OF_INT64 8 |
| 322 |
#define PR_ALIGN_OF_FLOAT 4 |
| 323 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 324 |
#define PR_ALIGN_OF_POINTER 8 |
| 325 |
#define PR_ALIGN_OF_WORD 8 |
| 326 |
|
| 327 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 328 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 329 |
|
| 330 |
#elif defined(__mc68000__) |
| 331 |
|
| 332 |
#undef IS_LITTLE_ENDIAN |
| 333 |
#define IS_BIG_ENDIAN 1 |
| 334 |
|
| 335 |
#define PR_BYTES_PER_BYTE 1 |
| 336 |
#define PR_BYTES_PER_SHORT 2 |
| 337 |
#define PR_BYTES_PER_INT 4 |
| 338 |
#define PR_BYTES_PER_INT64 8 |
| 339 |
#define PR_BYTES_PER_LONG 4 |
| 340 |
#define PR_BYTES_PER_FLOAT 4 |
| 341 |
#define PR_BYTES_PER_DOUBLE 8 |
| 342 |
#define PR_BYTES_PER_WORD 4 |
| 343 |
#define PR_BYTES_PER_DWORD 8 |
| 344 |
|
| 345 |
#define PR_BITS_PER_BYTE 8 |
| 346 |
#define PR_BITS_PER_SHORT 16 |
| 347 |
#define PR_BITS_PER_INT 32 |
| 348 |
#define PR_BITS_PER_INT64 64 |
| 349 |
#define PR_BITS_PER_LONG 32 |
| 350 |
#define PR_BITS_PER_FLOAT 32 |
| 351 |
#define PR_BITS_PER_DOUBLE 64 |
| 352 |
#define PR_BITS_PER_WORD 32 |
| 353 |
|
| 354 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 355 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 356 |
#define PR_BITS_PER_INT_LOG2 5 |
| 357 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 358 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 359 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 360 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 361 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 362 |
|
| 363 |
#define PR_ALIGN_OF_SHORT 2 |
| 364 |
#define PR_ALIGN_OF_INT 2 |
| 365 |
#define PR_ALIGN_OF_LONG 2 |
| 366 |
#define PR_ALIGN_OF_INT64 2 |
| 367 |
#define PR_ALIGN_OF_FLOAT 2 |
| 368 |
#define PR_ALIGN_OF_DOUBLE 2 |
| 369 |
#define PR_ALIGN_OF_POINTER 2 |
| 370 |
#define PR_ALIGN_OF_WORD 2 |
| 371 |
|
| 372 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 373 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 374 |
|
| 375 |
#elif defined(__sparc__) |
| 376 |
|
| 377 |
#undef IS_LITTLE_ENDIAN |
| 378 |
#define IS_BIG_ENDIAN 1 |
| 379 |
|
| 380 |
#define PR_BYTES_PER_BYTE 1 |
| 381 |
#define PR_BYTES_PER_SHORT 2 |
| 382 |
#define PR_BYTES_PER_INT 4 |
| 383 |
#define PR_BYTES_PER_INT64 8 |
| 384 |
#define PR_BYTES_PER_LONG 4 |
| 385 |
#define PR_BYTES_PER_FLOAT 4 |
| 386 |
#define PR_BYTES_PER_DOUBLE 8 |
| 387 |
#define PR_BYTES_PER_WORD 4 |
| 388 |
#define PR_BYTES_PER_DWORD 8 |
| 389 |
|
| 390 |
#define PR_BITS_PER_BYTE 8 |
| 391 |
#define PR_BITS_PER_SHORT 16 |
| 392 |
#define PR_BITS_PER_INT 32 |
| 393 |
#define PR_BITS_PER_INT64 64 |
| 394 |
#define PR_BITS_PER_LONG 32 |
| 395 |
#define PR_BITS_PER_FLOAT 32 |
| 396 |
#define PR_BITS_PER_DOUBLE 64 |
| 397 |
#define PR_BITS_PER_WORD 32 |
| 398 |
|
| 399 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 400 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 401 |
#define PR_BITS_PER_INT_LOG2 5 |
| 402 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 403 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 404 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 405 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 406 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 407 |
|
| 408 |
#define PR_ALIGN_OF_SHORT 2 |
| 409 |
#define PR_ALIGN_OF_INT 4 |
| 410 |
#define PR_ALIGN_OF_LONG 4 |
| 411 |
#define PR_ALIGN_OF_INT64 8 |
| 412 |
#define PR_ALIGN_OF_FLOAT 4 |
| 413 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 414 |
#define PR_ALIGN_OF_POINTER 4 |
| 415 |
#define PR_ALIGN_OF_WORD 4 |
| 416 |
|
| 417 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 418 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 419 |
|
| 420 |
#elif defined(__i386__) |
| 421 |
|
| 422 |
#define IS_LITTLE_ENDIAN 1 |
| 423 |
#undef IS_BIG_ENDIAN |
| 424 |
|
| 425 |
#define PR_BYTES_PER_BYTE 1 |
| 426 |
#define PR_BYTES_PER_SHORT 2 |
| 427 |
#define PR_BYTES_PER_INT 4 |
| 428 |
#define PR_BYTES_PER_INT64 8 |
| 429 |
#define PR_BYTES_PER_LONG 4 |
| 430 |
#define PR_BYTES_PER_FLOAT 4 |
| 431 |
#define PR_BYTES_PER_DOUBLE 8 |
| 432 |
#define PR_BYTES_PER_WORD 4 |
| 433 |
#define PR_BYTES_PER_DWORD 8 |
| 434 |
|
| 435 |
#define PR_BITS_PER_BYTE 8 |
| 436 |
#define PR_BITS_PER_SHORT 16 |
| 437 |
#define PR_BITS_PER_INT 32 |
| 438 |
#define PR_BITS_PER_INT64 64 |
| 439 |
#define PR_BITS_PER_LONG 32 |
| 440 |
#define PR_BITS_PER_FLOAT 32 |
| 441 |
#define PR_BITS_PER_DOUBLE 64 |
| 442 |
#define PR_BITS_PER_WORD 32 |
| 443 |
|
| 444 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 445 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 446 |
#define PR_BITS_PER_INT_LOG2 5 |
| 447 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 448 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 449 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 450 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 451 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 452 |
|
| 453 |
#define PR_ALIGN_OF_SHORT 2 |
| 454 |
#define PR_ALIGN_OF_INT 4 |
| 455 |
#define PR_ALIGN_OF_LONG 4 |
| 456 |
#define PR_ALIGN_OF_INT64 4 |
| 457 |
#define PR_ALIGN_OF_FLOAT 4 |
| 458 |
#define PR_ALIGN_OF_DOUBLE 4 |
| 459 |
#define PR_ALIGN_OF_POINTER 4 |
| 460 |
#define PR_ALIGN_OF_WORD 4 |
| 461 |
|
| 462 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 463 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 464 |
|
| 465 |
#elif defined(__mips__) |
| 466 |
|
| 467 |
#ifdef __MIPSEB__ |
| 468 |
#define IS_BIG_ENDIAN 1 |
| 469 |
#undef IS_LITTLE_ENDIAN |
| 470 |
#elif defined(__MIPSEL__) |
| 471 |
#define IS_LITTLE_ENDIAN 1 |
| 472 |
#undef IS_BIG_ENDIAN |
| 473 |
#else |
| 474 |
#error "Unknown MIPS endianness." |
| 475 |
#endif |
| 476 |
|
| 477 |
#define PR_BYTES_PER_BYTE 1 |
| 478 |
#define PR_BYTES_PER_SHORT 2 |
| 479 |
#define PR_BYTES_PER_INT 4 |
| 480 |
#define PR_BYTES_PER_INT64 8 |
| 481 |
#define PR_BYTES_PER_LONG 4 |
| 482 |
#define PR_BYTES_PER_FLOAT 4 |
| 483 |
#define PR_BYTES_PER_DOUBLE 8 |
| 484 |
#define PR_BYTES_PER_WORD 4 |
| 485 |
#define PR_BYTES_PER_DWORD 8 |
| 486 |
|
| 487 |
#define PR_BITS_PER_BYTE 8 |
| 488 |
#define PR_BITS_PER_SHORT 16 |
| 489 |
#define PR_BITS_PER_INT 32 |
| 490 |
#define PR_BITS_PER_INT64 64 |
| 491 |
#define PR_BITS_PER_LONG 32 |
| 492 |
#define PR_BITS_PER_FLOAT 32 |
| 493 |
#define PR_BITS_PER_DOUBLE 64 |
| 494 |
#define PR_BITS_PER_WORD 32 |
| 495 |
|
| 496 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 497 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 498 |
#define PR_BITS_PER_INT_LOG2 5 |
| 499 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 500 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 501 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 502 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 503 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 504 |
|
| 505 |
#define PR_ALIGN_OF_SHORT 2 |
| 506 |
#define PR_ALIGN_OF_INT 4 |
| 507 |
#define PR_ALIGN_OF_LONG 4 |
| 508 |
#define PR_ALIGN_OF_INT64 8 |
| 509 |
#define PR_ALIGN_OF_FLOAT 4 |
| 510 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 511 |
#define PR_ALIGN_OF_POINTER 4 |
| 512 |
#define PR_ALIGN_OF_WORD 4 |
| 513 |
|
| 514 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 515 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 516 |
|
| 517 |
#elif defined(__arm__) |
| 518 |
|
| 519 |
#define IS_LITTLE_ENDIAN 1 |
| 520 |
#undef IS_BIG_ENDIAN |
| 521 |
|
| 522 |
#define PR_BYTES_PER_BYTE 1 |
| 523 |
#define PR_BYTES_PER_SHORT 2 |
| 524 |
#define PR_BYTES_PER_INT 4 |
| 525 |
#define PR_BYTES_PER_INT64 8 |
| 526 |
#define PR_BYTES_PER_LONG 4 |
| 527 |
#define PR_BYTES_PER_FLOAT 4 |
| 528 |
#define PR_BYTES_PER_DOUBLE 8 |
| 529 |
#define PR_BYTES_PER_WORD 4 |
| 530 |
#define PR_BYTES_PER_DWORD 8 |
| 531 |
|
| 532 |
#define PR_BITS_PER_BYTE 8 |
| 533 |
#define PR_BITS_PER_SHORT 16 |
| 534 |
#define PR_BITS_PER_INT 32 |
| 535 |
#define PR_BITS_PER_INT64 64 |
| 536 |
#define PR_BITS_PER_LONG 32 |
| 537 |
#define PR_BITS_PER_FLOAT 32 |
| 538 |
#define PR_BITS_PER_DOUBLE 64 |
| 539 |
#define PR_BITS_PER_WORD 32 |
| 540 |
|
| 541 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 542 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 543 |
#define PR_BITS_PER_INT_LOG2 5 |
| 544 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 545 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 546 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 547 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 548 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 549 |
|
| 550 |
#define PR_ALIGN_OF_SHORT 2 |
| 551 |
#define PR_ALIGN_OF_INT 4 |
| 552 |
#define PR_ALIGN_OF_LONG 4 |
| 553 |
#define PR_ALIGN_OF_INT64 4 |
| 554 |
#define PR_ALIGN_OF_FLOAT 4 |
| 555 |
#define PR_ALIGN_OF_DOUBLE 4 |
| 556 |
#define PR_ALIGN_OF_POINTER 4 |
| 557 |
#define PR_ALIGN_OF_WORD 4 |
| 558 |
|
| 559 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 560 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 561 |
|
| 562 |
#elif defined(__aarch64__) |
| 563 |
|
| 564 |
#define IS_LITTLE_ENDIAN 1 |
| 565 |
#undef IS_BIG_ENDIAN |
| 566 |
#define IS_64 |
| 567 |
|
| 568 |
#define PR_BYTES_PER_BYTE 1 |
| 569 |
#define PR_BYTES_PER_SHORT 2 |
| 570 |
#define PR_BYTES_PER_INT 4 |
| 571 |
#define PR_BYTES_PER_INT64 8 |
| 572 |
#define PR_BYTES_PER_LONG 8 |
| 573 |
#define PR_BYTES_PER_FLOAT 4 |
| 574 |
#define PR_BYTES_PER_DOUBLE 8 |
| 575 |
#define PR_BYTES_PER_WORD 4 |
| 576 |
#define PR_BYTES_PER_DWORD 8 |
| 577 |
|
| 578 |
#define PR_BITS_PER_BYTE 8 |
| 579 |
#define PR_BITS_PER_SHORT 16 |
| 580 |
#define PR_BITS_PER_INT 32 |
| 581 |
#define PR_BITS_PER_INT64 64 |
| 582 |
#define PR_BITS_PER_LONG 64 |
| 583 |
#define PR_BITS_PER_FLOAT 32 |
| 584 |
#define PR_BITS_PER_DOUBLE 64 |
| 585 |
#define PR_BITS_PER_WORD 32 |
| 586 |
|
| 587 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 588 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 589 |
#define PR_BITS_PER_INT_LOG2 5 |
| 590 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 591 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 592 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 593 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 594 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 595 |
|
| 596 |
#define PR_ALIGN_OF_SHORT 2 |
| 597 |
#define PR_ALIGN_OF_INT 4 |
| 598 |
#define PR_ALIGN_OF_LONG 4 |
| 599 |
#define PR_ALIGN_OF_INT64 8 |
| 600 |
#define PR_ALIGN_OF_FLOAT 8 |
| 601 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 602 |
#define PR_ALIGN_OF_POINTER 8 |
| 603 |
#define PR_ALIGN_OF_WORD 4 |
| 604 |
|
| 605 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 606 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 607 |
|
| 608 |
#elif defined(__hppa__) |
| 609 |
|
| 610 |
#undef IS_LITTLE_ENDIAN |
| 611 |
#define IS_BIG_ENDIAN 1 |
| 612 |
|
| 613 |
#define PR_BYTES_PER_BYTE 1 |
| 614 |
#define PR_BYTES_PER_SHORT 2 |
| 615 |
#define PR_BYTES_PER_INT 4 |
| 616 |
#define PR_BYTES_PER_INT64 8 |
| 617 |
#define PR_BYTES_PER_LONG 4 |
| 618 |
#define PR_BYTES_PER_FLOAT 4 |
| 619 |
#define PR_BYTES_PER_DOUBLE 8 |
| 620 |
#define PR_BYTES_PER_WORD 4 |
| 621 |
#define PR_BYTES_PER_DWORD 8 |
| 622 |
|
| 623 |
#define PR_BITS_PER_BYTE 8 |
| 624 |
#define PR_BITS_PER_SHORT 16 |
| 625 |
#define PR_BITS_PER_INT 32 |
| 626 |
#define PR_BITS_PER_INT64 64 |
| 627 |
#define PR_BITS_PER_LONG 32 |
| 628 |
#define PR_BITS_PER_FLOAT 32 |
| 629 |
#define PR_BITS_PER_DOUBLE 64 |
| 630 |
#define PR_BITS_PER_WORD 32 |
| 631 |
|
| 632 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 633 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 634 |
#define PR_BITS_PER_INT_LOG2 5 |
| 635 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 636 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 637 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 638 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 639 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 640 |
|
| 641 |
#define PR_ALIGN_OF_SHORT 2 |
| 642 |
#define PR_ALIGN_OF_INT 4 |
| 643 |
#define PR_ALIGN_OF_LONG 4 |
| 644 |
#define PR_ALIGN_OF_INT64 8 |
| 645 |
#define PR_ALIGN_OF_FLOAT 4 |
| 646 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 647 |
#define PR_ALIGN_OF_POINTER 4 |
| 648 |
#define PR_ALIGN_OF_WORD 4 |
| 649 |
|
| 650 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 651 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 652 |
|
| 653 |
#elif defined(__s390x__) |
| 654 |
|
| 655 |
#define IS_BIG_ENDIAN 1 |
| 656 |
#undef IS_LITTLE_ENDIAN |
| 657 |
#define IS_64 |
| 658 |
|
| 659 |
#define PR_BYTES_PER_BYTE 1 |
| 660 |
#define PR_BYTES_PER_SHORT 2 |
| 661 |
#define PR_BYTES_PER_INT 4 |
| 662 |
#define PR_BYTES_PER_INT64 8 |
| 663 |
#define PR_BYTES_PER_LONG 8 |
| 664 |
#define PR_BYTES_PER_FLOAT 4 |
| 665 |
#define PR_BYTES_PER_DOUBLE 8 |
| 666 |
#define PR_BYTES_PER_WORD 8 |
| 667 |
#define PR_BYTES_PER_DWORD 8 |
| 668 |
|
| 669 |
#define PR_BITS_PER_BYTE 8 |
| 670 |
#define PR_BITS_PER_SHORT 16 |
| 671 |
#define PR_BITS_PER_INT 32 |
| 672 |
#define PR_BITS_PER_INT64 64 |
| 673 |
#define PR_BITS_PER_LONG 64 |
| 674 |
#define PR_BITS_PER_FLOAT 32 |
| 675 |
#define PR_BITS_PER_DOUBLE 64 |
| 676 |
#define PR_BITS_PER_WORD 64 |
| 677 |
|
| 678 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 679 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 680 |
#define PR_BITS_PER_INT_LOG2 5 |
| 681 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 682 |
#define PR_BITS_PER_LONG_LOG2 6 |
| 683 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 684 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 685 |
#define PR_BITS_PER_WORD_LOG2 6 |
| 686 |
|
| 687 |
#define PR_ALIGN_OF_SHORT 2 |
| 688 |
#define PR_ALIGN_OF_INT 4 |
| 689 |
#define PR_ALIGN_OF_LONG 8 |
| 690 |
#define PR_ALIGN_OF_INT64 8 |
| 691 |
#define PR_ALIGN_OF_FLOAT 4 |
| 692 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 693 |
#define PR_ALIGN_OF_POINTER 8 |
| 694 |
#define PR_ALIGN_OF_WORD 8 |
| 695 |
|
| 696 |
#define PR_BYTES_PER_WORD_LOG2 3 |
| 697 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 698 |
|
| 699 |
#elif defined(__s390__) |
| 700 |
|
| 701 |
#define IS_BIG_ENDIAN 1 |
| 702 |
#undef IS_LITTLE_ENDIAN |
| 703 |
|
| 704 |
#define PR_BYTES_PER_BYTE 1 |
| 705 |
#define PR_BYTES_PER_SHORT 2 |
| 706 |
#define PR_BYTES_PER_INT 4 |
| 707 |
#define PR_BYTES_PER_INT64 8 |
| 708 |
#define PR_BYTES_PER_LONG 4 |
| 709 |
#define PR_BYTES_PER_FLOAT 4 |
| 710 |
#define PR_BYTES_PER_DOUBLE 8 |
| 711 |
#define PR_BYTES_PER_WORD 4 |
| 712 |
#define PR_BYTES_PER_DWORD 8 |
| 713 |
|
| 714 |
#define PR_BITS_PER_BYTE 8 |
| 715 |
#define PR_BITS_PER_SHORT 16 |
| 716 |
#define PR_BITS_PER_INT 32 |
| 717 |
#define PR_BITS_PER_INT64 64 |
| 718 |
#define PR_BITS_PER_LONG 32 |
| 719 |
#define PR_BITS_PER_FLOAT 32 |
| 720 |
#define PR_BITS_PER_DOUBLE 64 |
| 721 |
#define PR_BITS_PER_WORD 32 |
| 722 |
|
| 723 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 724 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 725 |
#define PR_BITS_PER_INT_LOG2 5 |
| 726 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 727 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 728 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 729 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 730 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 731 |
|
| 732 |
#define PR_ALIGN_OF_SHORT 2 |
| 733 |
#define PR_ALIGN_OF_INT 4 |
| 734 |
#define PR_ALIGN_OF_LONG 4 |
| 735 |
#define PR_ALIGN_OF_INT64 4 |
| 736 |
#define PR_ALIGN_OF_FLOAT 4 |
| 737 |
#define PR_ALIGN_OF_DOUBLE 4 |
| 738 |
#define PR_ALIGN_OF_POINTER 4 |
| 739 |
#define PR_ALIGN_OF_WORD 4 |
| 740 |
|
| 741 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 742 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 743 |
|
| 744 |
#elif defined(__sh__) |
| 745 |
|
| 746 |
#ifdef __LITTLE_ENDIAN__ |
| 747 |
#define IS_LITTLE_ENDIAN 1 |
| 748 |
#undef IS_BIG_ENDIAN |
| 749 |
#else |
| 750 |
#define IS_BIG_ENDIAN 1 |
| 751 |
#undef IS_LITTLE_ENDIAN |
| 752 |
#endif |
| 753 |
|
| 754 |
#define PR_BYTES_PER_BYTE 1 |
| 755 |
#define PR_BYTES_PER_SHORT 2 |
| 756 |
#define PR_BYTES_PER_INT 4 |
| 757 |
#define PR_BYTES_PER_INT64 8 |
| 758 |
#define PR_BYTES_PER_LONG 4 |
| 759 |
#define PR_BYTES_PER_FLOAT 4 |
| 760 |
#define PR_BYTES_PER_DOUBLE 8 |
| 761 |
#define PR_BYTES_PER_WORD 4 |
| 762 |
#define PR_BYTES_PER_DWORD 8 |
| 763 |
|
| 764 |
#define PR_BITS_PER_BYTE 8 |
| 765 |
#define PR_BITS_PER_SHORT 16 |
| 766 |
#define PR_BITS_PER_INT 32 |
| 767 |
#define PR_BITS_PER_INT64 64 |
| 768 |
#define PR_BITS_PER_LONG 32 |
| 769 |
#define PR_BITS_PER_FLOAT 32 |
| 770 |
#define PR_BITS_PER_DOUBLE 64 |
| 771 |
#define PR_BITS_PER_WORD 32 |
| 772 |
|
| 773 |
#define PR_BITS_PER_BYTE_LOG2 3 |
| 774 |
#define PR_BITS_PER_SHORT_LOG2 4 |
| 775 |
#define PR_BITS_PER_INT_LOG2 5 |
| 776 |
#define PR_BITS_PER_INT64_LOG2 6 |
| 777 |
#define PR_BITS_PER_LONG_LOG2 5 |
| 778 |
#define PR_BITS_PER_FLOAT_LOG2 5 |
| 779 |
#define PR_BITS_PER_DOUBLE_LOG2 6 |
| 780 |
#define PR_BITS_PER_WORD_LOG2 5 |
| 781 |
|
| 782 |
#define PR_ALIGN_OF_SHORT 2 |
| 783 |
#define PR_ALIGN_OF_INT 4 |
| 784 |
#define PR_ALIGN_OF_LONG 4 |
| 785 |
#define PR_ALIGN_OF_INT64 8 |
| 786 |
#define PR_ALIGN_OF_FLOAT 4 |
| 787 |
#define PR_ALIGN_OF_DOUBLE 8 |
| 788 |
#define PR_ALIGN_OF_POINTER 4 |
| 789 |
#define PR_ALIGN_OF_WORD 4 |
| 790 |
|
| 791 |
#define PR_BYTES_PER_WORD_LOG2 2 |
| 792 |
#define PR_BYTES_PER_DWORD_LOG2 3 |
| 793 |
|
| 794 |
#else |
| 795 |
|
| 796 |
#error "Unknown CPU architecture" |
| 797 |
|
| 798 |
#endif |
| 799 |
|
| 800 |
#define HAVE_LONG_LONG |
| 801 |
#if PR_ALIGN_OF_DOUBLE == 8 |
| 802 |
#define HAVE_ALIGNED_DOUBLES |
| 803 |
#endif |
| 804 |
#if PR_ALIGN_OF_INT64 == 8 |
| 805 |
#define HAVE_ALIGNED_LONGLONGS |
| 806 |
#endif |
| 807 |
|
| 808 |
#ifndef NO_NSPR_10_SUPPORT |
| 809 |
|
| 810 |
#define BYTES_PER_BYTE PR_BYTES_PER_BYTE |
| 811 |
#define BYTES_PER_SHORT PR_BYTES_PER_SHORT |
| 812 |
#define BYTES_PER_INT PR_BYTES_PER_INT |
| 813 |
#define BYTES_PER_INT64 PR_BYTES_PER_INT64 |
| 814 |
#define BYTES_PER_LONG PR_BYTES_PER_LONG |
| 815 |
#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT |
| 816 |
#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE |
| 817 |
#define BYTES_PER_WORD PR_BYTES_PER_WORD |
| 818 |
#define BYTES_PER_DWORD PR_BYTES_PER_DWORD |
| 819 |
|
| 820 |
#define BITS_PER_BYTE PR_BITS_PER_BYTE |
| 821 |
#define BITS_PER_SHORT PR_BITS_PER_SHORT |
| 822 |
#define BITS_PER_INT PR_BITS_PER_INT |
| 823 |
#define BITS_PER_INT64 PR_BITS_PER_INT64 |
| 824 |
#define BITS_PER_LONG PR_BITS_PER_LONG |
| 825 |
#define BITS_PER_FLOAT PR_BITS_PER_FLOAT |
| 826 |
#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE |
| 827 |
#define BITS_PER_WORD PR_BITS_PER_WORD |
| 828 |
|
| 829 |
#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2 |
| 830 |
#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2 |
| 831 |
#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2 |
| 832 |
#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2 |
| 833 |
#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2 |
| 834 |
#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2 |
| 835 |
#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2 |
| 836 |
#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2 |
| 837 |
|
| 838 |
#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT |
| 839 |
#define ALIGN_OF_INT PR_ALIGN_OF_INT |
| 840 |
#define ALIGN_OF_LONG PR_ALIGN_OF_LONG |
| 841 |
#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64 |
| 842 |
#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT |
| 843 |
#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE |
| 844 |
#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER |
| 845 |
#define ALIGN_OF_WORD PR_ALIGN_OF_WORD |
| 846 |
|
| 847 |
#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 |
| 848 |
#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 |
| 849 |
#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 |
| 850 |
|
| 851 |
#endif /* NO_NSPR_10_SUPPORT */ |
| 852 |
|
| 853 |
#endif /* nspr_cpucfg___ */ |