_bsdi.cfg 4.7 KB

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