_unixware.cfg 3.3 KB

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