Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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
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/. */
6 #ifndef nspr_cpucfg___
7 #define nspr_cpucfg___
9 #ifndef XP_PC
10 #define XP_PC
11 #endif
13 #ifndef XP_OS2
14 #define XP_OS2
15 #endif
17 #ifndef OS2
18 #define OS2
19 #endif
21 #define IS_LITTLE_ENDIAN 1
22 #undef IS_BIG_ENDIAN
23 #ifdef NO_LONG_LONG
24 #undef HAVE_LONG_LONG
25 #else
26 #ifndef HAVE_LONG_LONG
27 #define HAVE_LONG_LONG 1
28 #endif
29 #endif
31 #define PR_AF_INET6 24 /* same as AF_INET6 */
33 #define PR_BYTES_PER_BYTE 1
34 #define PR_BYTES_PER_SHORT 2
35 #define PR_BYTES_PER_INT 4
36 #define PR_BYTES_PER_INT64 8
37 #define PR_BYTES_PER_LONG 4
38 #define PR_BYTES_PER_FLOAT 4
39 #define PR_BYTES_PER_DOUBLE 8
40 #define PR_BYTES_PER_WORD 4
41 #define PR_BYTES_PER_DWORD 8
43 #define PR_BITS_PER_BYTE 8
44 #define PR_BITS_PER_SHORT 16
45 #define PR_BITS_PER_INT 32
46 #define PR_BITS_PER_INT64 64
47 #define PR_BITS_PER_LONG 32
48 #define PR_BITS_PER_FLOAT 32
49 #define PR_BITS_PER_WORD 32
50 #define PR_BITS_PER_DWORD 64
51 #define PR_BITS_PER_DOUBLE 64
53 #define PR_BITS_PER_BYTE_LOG2 3
54 #define PR_BITS_PER_SHORT_LOG2 4
55 #define PR_BITS_PER_INT_LOG2 5
56 #define PR_BITS_PER_INT64_LOG2 6
57 #define PR_BITS_PER_LONG_LOG2 5
58 #define PR_BITS_PER_FLOAT_LOG2 5
59 #define PR_BITS_PER_WORD_LOG2 5
60 #define PR_BITS_PER_DWORD_LOG2 6
61 #define PR_BITS_PER_DOUBLE_LOG2 6
63 #define PR_ALIGN_OF_SHORT 2
64 #define PR_ALIGN_OF_INT 4
65 #define PR_ALIGN_OF_LONG 4
66 #define PR_ALIGN_OF_INT64 4
67 #define PR_ALIGN_OF_FLOAT 4
68 #define PR_ALIGN_OF_DOUBLE 4
69 #define PR_ALIGN_OF_WORD 4
70 #define PR_ALIGN_OF_DWORD 8
71 #define PR_ALIGN_OF_POINTER 4
73 #define PR_BYTES_PER_WORD_LOG2 2
74 #define PR_BYTES_PER_DWORD_LOG2 2
76 #ifndef NO_NSPR_10_SUPPORT
78 #define BYTES_PER_BYTE PR_BYTES_PER_BYTE
79 #define BYTES_PER_SHORT PR_BYTES_PER_SHORT
80 #define BYTES_PER_INT PR_BYTES_PER_INT
81 #define BYTES_PER_INT64 PR_BYTES_PER_INT64
82 #define BYTES_PER_LONG PR_BYTES_PER_LONG
83 #define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
84 #define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
85 #define BYTES_PER_WORD PR_BYTES_PER_WORD
86 #define BYTES_PER_DWORD PR_BYTES_PER_DWORD
88 #define BITS_PER_BYTE PR_BITS_PER_BYTE
89 #define BITS_PER_SHORT PR_BITS_PER_SHORT
90 #define BITS_PER_INT PR_BITS_PER_INT
91 #define BITS_PER_INT64 PR_BITS_PER_INT64
92 #define BITS_PER_LONG PR_BITS_PER_LONG
93 #define BITS_PER_FLOAT PR_BITS_PER_FLOAT
94 #define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
95 #define BITS_PER_WORD PR_BITS_PER_WORD
97 #define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
98 #define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
99 #define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
100 #define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
101 #define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
102 #define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
103 #define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
104 #define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
106 #define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
107 #define ALIGN_OF_INT PR_ALIGN_OF_INT
108 #define ALIGN_OF_LONG PR_ALIGN_OF_LONG
109 #define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
110 #define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
111 #define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
112 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
113 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD
115 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
116 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
117 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
119 #endif /* NO_NSPR_10_SUPPORT */
121 #endif /* nspr_cpucfg___ */