_hpux64.cfg 3.3 KB

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