_qnx.cfg 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  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 QNX
  11. #define QNX
  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_BITS_PER_BYTE 8
  28. #define PR_BITS_PER_SHORT 16
  29. #define PR_BITS_PER_INT 32
  30. #define PR_BITS_PER_INT64 64
  31. #define PR_BITS_PER_LONG 32
  32. #define PR_BITS_PER_FLOAT 32
  33. #define PR_BITS_PER_DOUBLE 64
  34. #define PR_BITS_PER_WORD 32
  35. #define PR_BITS_PER_BYTE_LOG2 3
  36. #define PR_BITS_PER_SHORT_LOG2 4
  37. #define PR_BITS_PER_INT_LOG2 5
  38. #define PR_BITS_PER_INT64_LOG2 6
  39. #define PR_BITS_PER_LONG_LOG2 5
  40. #define PR_BITS_PER_FLOAT_LOG2 5
  41. #define PR_BITS_PER_DOUBLE_LOG2 6
  42. #define PR_BITS_PER_WORD_LOG2 5
  43. #define PR_ALIGN_OF_SHORT 1
  44. #define PR_ALIGN_OF_INT 1
  45. #define PR_ALIGN_OF_LONG 1
  46. #define PR_ALIGN_OF_INT64 1
  47. #define PR_ALIGN_OF_FLOAT 1
  48. #define PR_ALIGN_OF_DOUBLE 1
  49. #define PR_ALIGN_OF_POINTER 1
  50. #define PR_ALIGN_OF_WORD 1
  51. #define PR_BYTES_PER_WORD_LOG2 2
  52. #define PR_BYTES_PER_DWORD_LOG2 3
  53. #define PR_WORDS_PER_DWORD_LOG2 1
  54. #endif /* nspr_cpucfg___ */