1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nsprpub/pr/include/md/_solaris.cfg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,171 @@ 1.4 +/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ 1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public 1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this 1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ 1.8 + 1.9 +#ifndef nspr_cpucfg___ 1.10 +#define nspr_cpucfg___ 1.11 + 1.12 +#ifndef XP_UNIX 1.13 +#define XP_UNIX 1.14 +#endif 1.15 + 1.16 +#ifndef SOLARIS 1.17 +#define SOLARIS 1.18 +#endif 1.19 + 1.20 +#define PR_AF_INET6 26 /* same as AF_INET6 */ 1.21 + 1.22 +#if defined(sparc) || defined(__sparc) 1.23 +#undef IS_LITTLE_ENDIAN 1.24 +#define IS_BIG_ENDIAN 1 1.25 +#define PR_ALIGN_OF_INT64 8 1.26 +#define PR_ALIGN_OF_DOUBLE 8 1.27 +#if defined(__sparcv9) 1.28 +#define IS_64 1.29 +#endif 1.30 +#elif defined(__x86_64) 1.31 +#define IS_LITTLE_ENDIAN 1 1.32 +#undef IS_BIG_ENDIAN 1.33 +#define PR_ALIGN_OF_INT64 8 1.34 +#define PR_ALIGN_OF_DOUBLE 8 1.35 +#define IS_64 1.36 +#elif defined(i386) || defined(__i386) 1.37 +#define IS_LITTLE_ENDIAN 1 1.38 +#undef IS_BIG_ENDIAN 1.39 +#define PR_ALIGN_OF_INT64 4 1.40 +#define PR_ALIGN_OF_DOUBLE 4 1.41 +#else 1.42 +#error unknown processor 1.43 +#endif 1.44 + 1.45 +#ifdef IS_64 1.46 + 1.47 +#define PR_BYTES_PER_BYTE 1 1.48 +#define PR_BYTES_PER_SHORT 2 1.49 +#define PR_BYTES_PER_INT 4 1.50 +#define PR_BYTES_PER_INT64 8 1.51 +#define PR_BYTES_PER_LONG 8 1.52 +#define PR_BYTES_PER_FLOAT 4 1.53 +#define PR_BYTES_PER_DOUBLE 8 1.54 +#define PR_BYTES_PER_WORD 8 1.55 +#define PR_BYTES_PER_DWORD 8 1.56 +#define PR_BYTES_PER_WORD_LOG2 3 1.57 +#define PR_BYTES_PER_DWORD_LOG2 3 1.58 + 1.59 +#define PR_BITS_PER_BYTE 8 1.60 +#define PR_BITS_PER_SHORT 16 1.61 +#define PR_BITS_PER_INT 32 1.62 +#define PR_BITS_PER_INT64 64 1.63 +#define PR_BITS_PER_LONG 64 1.64 +#define PR_BITS_PER_FLOAT 32 1.65 +#define PR_BITS_PER_DOUBLE 64 1.66 +#define PR_BITS_PER_WORD 64 1.67 + 1.68 +#define PR_BITS_PER_BYTE_LOG2 3 1.69 +#define PR_BITS_PER_SHORT_LOG2 4 1.70 +#define PR_BITS_PER_INT_LOG2 5 1.71 +#define PR_BITS_PER_INT64_LOG2 6 1.72 +#define PR_BITS_PER_LONG_LOG2 6 1.73 +#define PR_BITS_PER_FLOAT_LOG2 5 1.74 +#define PR_BITS_PER_DOUBLE_LOG2 6 1.75 +#define PR_BITS_PER_WORD_LOG2 6 1.76 + 1.77 +#define PR_ALIGN_OF_SHORT 2 1.78 +#define PR_ALIGN_OF_INT 4 1.79 +#define PR_ALIGN_OF_LONG 8 1.80 +#define PR_ALIGN_OF_FLOAT 4 1.81 +#define PR_ALIGN_OF_POINTER 8 1.82 + 1.83 +#else /* IS_64 */ 1.84 + 1.85 +#define PR_BYTES_PER_BYTE 1 1.86 +#define PR_BYTES_PER_SHORT 2 1.87 +#define PR_BYTES_PER_INT 4 1.88 +#define PR_BYTES_PER_INT64 8 1.89 +#define PR_BYTES_PER_LONG 4 1.90 +#define PR_BYTES_PER_FLOAT 4 1.91 +#define PR_BYTES_PER_DOUBLE 8 1.92 +#define PR_BYTES_PER_WORD 4 1.93 +#define PR_BYTES_PER_DWORD 8 1.94 +#define PR_BYTES_PER_WORD_LOG2 2 1.95 +#define PR_BYTES_PER_DWORD_LOG2 3 1.96 + 1.97 +#define PR_BITS_PER_BYTE 8 1.98 +#define PR_BITS_PER_SHORT 16 1.99 +#define PR_BITS_PER_INT 32 1.100 +#define PR_BITS_PER_INT64 64 1.101 +#define PR_BITS_PER_LONG 32 1.102 +#define PR_BITS_PER_FLOAT 32 1.103 +#define PR_BITS_PER_DOUBLE 64 1.104 +#define PR_BITS_PER_WORD 32 1.105 + 1.106 +#define PR_BITS_PER_BYTE_LOG2 3 1.107 +#define PR_BITS_PER_SHORT_LOG2 4 1.108 +#define PR_BITS_PER_INT_LOG2 5 1.109 +#define PR_BITS_PER_INT64_LOG2 6 1.110 +#define PR_BITS_PER_LONG_LOG2 5 1.111 +#define PR_BITS_PER_FLOAT_LOG2 5 1.112 +#define PR_BITS_PER_DOUBLE_LOG2 6 1.113 +#define PR_BITS_PER_WORD_LOG2 5 1.114 + 1.115 +#define PR_ALIGN_OF_SHORT 2 1.116 +#define PR_ALIGN_OF_INT 4 1.117 +#define PR_ALIGN_OF_LONG 4 1.118 +#define PR_ALIGN_OF_FLOAT 4 1.119 +#define PR_ALIGN_OF_POINTER 4 1.120 + 1.121 +#endif /* IS_64 */ 1.122 + 1.123 +#ifndef HAVE_LONG_LONG 1.124 +#define HAVE_LONG_LONG 1.125 +#endif 1.126 +#define HAVE_ALIGNED_DOUBLES 1.127 +#define HAVE_ALIGNED_LONGLONGS 1.128 + 1.129 +#ifndef NO_NSPR_10_SUPPORT 1.130 + 1.131 +#define BYTES_PER_BYTE PR_BYTES_PER_BYTE 1.132 +#define BYTES_PER_SHORT PR_BYTES_PER_SHORT 1.133 +#define BYTES_PER_INT PR_BYTES_PER_INT 1.134 +#define BYTES_PER_INT64 PR_BYTES_PER_INT64 1.135 +#define BYTES_PER_LONG PR_BYTES_PER_LONG 1.136 +#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT 1.137 +#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE 1.138 +#define BYTES_PER_WORD PR_BYTES_PER_WORD 1.139 +#define BYTES_PER_DWORD PR_BYTES_PER_DWORD 1.140 + 1.141 +#define BITS_PER_BYTE PR_BITS_PER_BYTE 1.142 +#define BITS_PER_SHORT PR_BITS_PER_SHORT 1.143 +#define BITS_PER_INT PR_BITS_PER_INT 1.144 +#define BITS_PER_INT64 PR_BITS_PER_INT64 1.145 +#define BITS_PER_LONG PR_BITS_PER_LONG 1.146 +#define BITS_PER_FLOAT PR_BITS_PER_FLOAT 1.147 +#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE 1.148 +#define BITS_PER_WORD PR_BITS_PER_WORD 1.149 + 1.150 +#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2 1.151 +#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2 1.152 +#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2 1.153 +#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2 1.154 +#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2 1.155 +#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2 1.156 +#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2 1.157 +#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2 1.158 + 1.159 +#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT 1.160 +#define ALIGN_OF_INT PR_ALIGN_OF_INT 1.161 +#define ALIGN_OF_LONG PR_ALIGN_OF_LONG 1.162 +#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64 1.163 +#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT 1.164 +#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE 1.165 +#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER 1.166 +#define ALIGN_OF_WORD PR_ALIGN_OF_WORD 1.167 + 1.168 +#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 1.169 +#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 1.170 +#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 1.171 + 1.172 +#endif /* NO_NSPR_10_SUPPORT */ 1.173 + 1.174 +#endif /* ifndef nspr_cpucfg___ */