Debian Codegraph @

nsprpub/pr/include/md/_hpux64.cfg

raw
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/. */
5
6 #ifndef nspr_cpucfg___
7 #define nspr_cpucfg___
8
9 #ifndef XP_UNIX
10 #define XP_UNIX
11 #endif
12
13 #ifndef HPUX
14 #define HPUX
15 #endif
16
17 #undef IS_LITTLE_ENDIAN
18 #define IS_BIG_ENDIAN 1
19 #define IS_64
20
21 #define PR_AF_INET6 22 /* same as AF_INET6 */
22
23 #define PR_BYTES_PER_BYTE 1
24 #define PR_BYTES_PER_SHORT 2
25 #define PR_BYTES_PER_INT 4
26 #define PR_BYTES_PER_INT64 8
27 #define PR_BYTES_PER_LONG 8
28 #define PR_BYTES_PER_FLOAT 4
29 #define PR_BYTES_PER_DOUBLE 8
30 #define PR_BYTES_PER_WORD 8
31 #define PR_BYTES_PER_DWORD 8
32
33 #define PR_BYTES_PER_WORD_LOG2 3
34 #define PR_BYTES_PER_DWORD_LOG2 3
35
36 #define PR_BITS_PER_BYTE 8
37 #define PR_BITS_PER_SHORT 16
38 #define PR_BITS_PER_INT 32
39 #define PR_BITS_PER_INT64 64
40 #define PR_BITS_PER_LONG 64
41 #define PR_BITS_PER_FLOAT 32
42 #define PR_BITS_PER_DOUBLE 64
43 #define PR_BITS_PER_WORD 64
44
45 #define PR_BITS_PER_BYTE_LOG2 3
46 #define PR_BITS_PER_SHORT_LOG2 4
47 #define PR_BITS_PER_INT_LOG2 5
48 #define PR_BITS_PER_INT64_LOG2 6
49 #define PR_BITS_PER_LONG_LOG2 6
50 #define PR_BITS_PER_FLOAT_LOG2 5
51 #define PR_BITS_PER_DOUBLE_LOG2 6
52 #define PR_BITS_PER_WORD_LOG2 6
53
54 #define PR_ALIGN_OF_SHORT 2
55 #define PR_ALIGN_OF_INT 4
56 #define PR_ALIGN_OF_LONG 8
57 #define PR_ALIGN_OF_INT64 8
58 #define PR_ALIGN_OF_FLOAT 4
59 #define PR_ALIGN_OF_DOUBLE 8
60 #define PR_ALIGN_OF_POINTER 8
61
62 #ifndef HAVE_LONG_LONG
63 #define HAVE_LONG_LONG
64 #endif
65 #define HAVE_ALIGNED_DOUBLES
66 #define HAVE_ALIGNED_LONGLONGS
67
68 #ifndef NO_NSPR_10_SUPPORT
69
70 #define BYTES_PER_BYTE PR_BYTES_PER_BYTE
71 #define BYTES_PER_SHORT PR_BYTES_PER_SHORT
72 #define BYTES_PER_INT PR_BYTES_PER_INT
73 #define BYTES_PER_INT64 PR_BYTES_PER_INT64
74 #define BYTES_PER_LONG PR_BYTES_PER_LONG
75 #define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
76 #define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
77 #define BYTES_PER_WORD PR_BYTES_PER_WORD
78 #define BYTES_PER_DWORD PR_BYTES_PER_DWORD
79
80 #define BITS_PER_BYTE PR_BITS_PER_BYTE
81 #define BITS_PER_SHORT PR_BITS_PER_SHORT
82 #define BITS_PER_INT PR_BITS_PER_INT
83 #define BITS_PER_INT64 PR_BITS_PER_INT64
84 #define BITS_PER_LONG PR_BITS_PER_LONG
85 #define BITS_PER_FLOAT PR_BITS_PER_FLOAT
86 #define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
87 #define BITS_PER_WORD PR_BITS_PER_WORD
88
89 #define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
90 #define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
91 #define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
92 #define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
93 #define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
94 #define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
95 #define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
96 #define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
97
98 #define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
99 #define ALIGN_OF_INT PR_ALIGN_OF_INT
100 #define ALIGN_OF_LONG PR_ALIGN_OF_LONG
101 #define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
102 #define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
103 #define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
104 #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
105 #define ALIGN_OF_WORD PR_ALIGN_OF_WORD
106
107 #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
108 #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
109 #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
110
111 #endif /* NO_NSPR_10_SUPPORT */
112
113 #endif /* nspr_cpucfg___ */