1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/nsprpub/pr/include/md/_unixware.cfg Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,108 @@ 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 UNIXWARE 1.17 +#define UNIXWARE 1.18 +#endif 1.19 + 1.20 +#define IS_LITTLE_ENDIAN 1 1.21 +#undef IS_BIG_ENDIAN 1.22 +#undef HAVE_LONG_LONG 1.23 +#undef HAVE_ALIGNED_DOUBLES 1.24 +#undef HAVE_ALIGNED_LONGLONGS 1.25 + 1.26 +#define PR_BYTES_PER_BYTE 1 1.27 +#define PR_BYTES_PER_SHORT 2 1.28 +#define PR_BYTES_PER_INT 4 1.29 +#define PR_BYTES_PER_INT64 8 1.30 +#define PR_BYTES_PER_LONG 4 1.31 +#define PR_BYTES_PER_FLOAT 4 1.32 +#define PR_BYTES_PER_DOUBLE 8 1.33 +#define PR_BYTES_PER_WORD 4 1.34 +#define PR_BYTES_PER_DWORD 8 1.35 +#define PR_BYTES_PER_WORD_LOG2 2 1.36 +#define PR_BYTES_PER_DWORD_LOG2 3 1.37 + 1.38 +#define PR_BITS_PER_BYTE 8 1.39 +#define PR_BITS_PER_SHORT 16 1.40 +#define PR_BITS_PER_INT 32 1.41 +#define PR_BITS_PER_INT64 64 1.42 +#define PR_BITS_PER_LONG 32 1.43 +#define PR_BITS_PER_FLOAT 32 1.44 +#define PR_BITS_PER_DOUBLE 64 1.45 +#define PR_BITS_PER_WORD 32 1.46 + 1.47 +#define PR_BITS_PER_BYTE_LOG2 3 1.48 +#define PR_BITS_PER_SHORT_LOG2 4 1.49 +#define PR_BITS_PER_INT_LOG2 5 1.50 +#define PR_BITS_PER_INT64_LOG2 6 1.51 +#define PR_BITS_PER_LONG_LOG2 5 1.52 +#define PR_BITS_PER_FLOAT_LOG2 5 1.53 +#define PR_BITS_PER_DOUBLE_LOG2 6 1.54 +#define PR_BITS_PER_WORD_LOG2 5 1.55 + 1.56 +#define PR_ALIGN_OF_SHORT 2 1.57 +#define PR_ALIGN_OF_INT 4 1.58 +#define PR_ALIGN_OF_LONG 4 1.59 +#define PR_ALIGN_OF_INT64 4 1.60 +#define PR_ALIGN_OF_FLOAT 4 1.61 +#define PR_ALIGN_OF_DOUBLE 4 1.62 +#define PR_ALIGN_OF_POINTER 4 1.63 + 1.64 +#define _PR_POLL_BACKCOMPAT 1.65 + 1.66 +#ifndef NO_NSPR_10_SUPPORT 1.67 + 1.68 +#define BYTES_PER_BYTE PR_BYTES_PER_BYTE 1.69 +#define BYTES_PER_SHORT PR_BYTES_PER_SHORT 1.70 +#define BYTES_PER_INT PR_BYTES_PER_INT 1.71 +#define BYTES_PER_INT64 PR_BYTES_PER_INT64 1.72 +#define BYTES_PER_LONG PR_BYTES_PER_LONG 1.73 +#define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT 1.74 +#define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE 1.75 +#define BYTES_PER_WORD PR_BYTES_PER_WORD 1.76 +#define BYTES_PER_DWORD PR_BYTES_PER_DWORD 1.77 + 1.78 +#define BITS_PER_BYTE PR_BITS_PER_BYTE 1.79 +#define BITS_PER_SHORT PR_BITS_PER_SHORT 1.80 +#define BITS_PER_INT PR_BITS_PER_INT 1.81 +#define BITS_PER_INT64 PR_BITS_PER_INT64 1.82 +#define BITS_PER_LONG PR_BITS_PER_LONG 1.83 +#define BITS_PER_FLOAT PR_BITS_PER_FLOAT 1.84 +#define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE 1.85 +#define BITS_PER_WORD PR_BITS_PER_WORD 1.86 + 1.87 +#define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2 1.88 +#define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2 1.89 +#define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2 1.90 +#define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2 1.91 +#define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2 1.92 +#define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2 1.93 +#define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2 1.94 +#define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2 1.95 + 1.96 +#define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT 1.97 +#define ALIGN_OF_INT PR_ALIGN_OF_INT 1.98 +#define ALIGN_OF_LONG PR_ALIGN_OF_LONG 1.99 +#define ALIGN_OF_INT64 PR_ALIGN_OF_INT64 1.100 +#define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT 1.101 +#define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE 1.102 +#define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER 1.103 +#define ALIGN_OF_WORD PR_ALIGN_OF_WORD 1.104 + 1.105 +#define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2 1.106 +#define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2 1.107 +#define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2 1.108 + 1.109 +#endif /* NO_NSPR_10_SUPPORT */ 1.110 + 1.111 +#endif /* nspr_cpucfg___ */