home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / nspr30-v.zip / nspr30-v / include / md / _irix32.cfg < prev    next >
Text File  |  1998-09-25  |  4KB  |  129 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /*
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  * 
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  * 
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef nspr_cpucfg___
  20. #define nspr_cpucfg___
  21.  
  22. #ifndef _SGI_MP_SOURCE
  23. #define _SGI_MP_SOURCE
  24. #endif
  25.  
  26. #ifndef XP_UNIX
  27. #define XP_UNIX
  28. #endif
  29.  
  30. #ifndef IRIX
  31. #define IRIX
  32. #endif
  33.  
  34. #undef  IS_LITTLE_ENDIAN
  35. #define IS_BIG_ENDIAN 1
  36.  
  37. #define PR_BYTES_PER_BYTE   1
  38. #define PR_BYTES_PER_SHORT  2
  39. #define PR_BYTES_PER_INT    4
  40. #define PR_BYTES_PER_INT64  8
  41. #define PR_BYTES_PER_LONG   4
  42. #define PR_BYTES_PER_FLOAT  4
  43. #define PR_BYTES_PER_DOUBLE 8
  44. #define PR_BYTES_PER_WORD   4
  45. #define PR_BYTES_PER_DWORD  8
  46.  
  47. #define PR_BITS_PER_BYTE    8
  48. #define PR_BITS_PER_SHORT   16
  49. #define PR_BITS_PER_INT     32
  50. #define PR_BITS_PER_INT64   64
  51. #define PR_BITS_PER_LONG    32
  52. #define PR_BITS_PER_FLOAT   32
  53. #define PR_BITS_PER_DOUBLE  64
  54. #define PR_BITS_PER_WORD    32
  55.  
  56. #define PR_BITS_PER_BYTE_LOG2   3
  57. #define PR_BITS_PER_SHORT_LOG2  4
  58. #define PR_BITS_PER_INT_LOG2    5
  59. #define PR_BITS_PER_INT64_LOG2  6
  60. #define PR_BITS_PER_LONG_LOG2   5
  61. #define PR_BITS_PER_FLOAT_LOG2  5
  62. #define PR_BITS_PER_DOUBLE_LOG2 6
  63. #define PR_BITS_PER_WORD_LOG2   5
  64.  
  65. #define PR_BYTES_PER_WORD_LOG2  2
  66. #define PR_BYTES_PER_DWORD_LOG2 3
  67.  
  68. #define PR_ALIGN_OF_SHORT   2
  69. #define PR_ALIGN_OF_INT     4
  70. #define PR_ALIGN_OF_LONG    4
  71. #define PR_ALIGN_OF_INT64   8
  72. #define PR_ALIGN_OF_FLOAT   4
  73. #define PR_ALIGN_OF_DOUBLE  8
  74. #define PR_ALIGN_OF_POINTER 4
  75. #define PR_ALIGN_OF_WORD    4
  76.  
  77. #define HAVE_LONG_LONG
  78. #define HAVE_ALIGNED_DOUBLES
  79. #define HAVE_ALIGNED_LONGLONGS
  80.  
  81. #define _PR_POLL_BACKCOMPAT
  82.  
  83. #ifndef NO_NSPR_10_SUPPORT
  84.  
  85. #define BYTES_PER_BYTE        PR_BYTES_PER_BYTE
  86. #define BYTES_PER_SHORT     PR_BYTES_PER_SHORT
  87. #define BYTES_PER_INT         PR_BYTES_PER_INT
  88. #define BYTES_PER_INT64        PR_BYTES_PER_INT64
  89. #define BYTES_PER_LONG        PR_BYTES_PER_LONG
  90. #define BYTES_PER_FLOAT        PR_BYTES_PER_FLOAT
  91. #define BYTES_PER_DOUBLE    PR_BYTES_PER_DOUBLE
  92. #define BYTES_PER_WORD        PR_BYTES_PER_WORD
  93. #define BYTES_PER_DWORD        PR_BYTES_PER_DWORD
  94.  
  95. #define BITS_PER_BYTE        PR_BITS_PER_BYTE
  96. #define BITS_PER_SHORT        PR_BITS_PER_SHORT
  97. #define BITS_PER_INT        PR_BITS_PER_INT
  98. #define BITS_PER_INT64        PR_BITS_PER_INT64
  99. #define BITS_PER_LONG        PR_BITS_PER_LONG
  100. #define BITS_PER_FLOAT        PR_BITS_PER_FLOAT
  101. #define BITS_PER_DOUBLE        PR_BITS_PER_DOUBLE
  102. #define BITS_PER_WORD        PR_BITS_PER_WORD
  103.  
  104. #define BITS_PER_BYTE_LOG2    PR_BITS_PER_BYTE_LOG2
  105. #define BITS_PER_SHORT_LOG2    PR_BITS_PER_SHORT_LOG2
  106. #define BITS_PER_INT_LOG2    PR_BITS_PER_INT_LOG2
  107. #define BITS_PER_INT64_LOG2    PR_BITS_PER_INT64_LOG2
  108. #define BITS_PER_LONG_LOG2    PR_BITS_PER_LONG_LOG2
  109. #define BITS_PER_FLOAT_LOG2    PR_BITS_PER_FLOAT_LOG2
  110. #define BITS_PER_DOUBLE_LOG2     PR_BITS_PER_DOUBLE_LOG2
  111. #define BITS_PER_WORD_LOG2    PR_BITS_PER_WORD_LOG2
  112.  
  113. #define ALIGN_OF_SHORT        PR_ALIGN_OF_SHORT
  114. #define ALIGN_OF_INT        PR_ALIGN_OF_INT
  115. #define ALIGN_OF_LONG        PR_ALIGN_OF_LONG
  116. #define ALIGN_OF_INT64        PR_ALIGN_OF_INT64
  117. #define ALIGN_OF_FLOAT        PR_ALIGN_OF_FLOAT
  118. #define ALIGN_OF_DOUBLE        PR_ALIGN_OF_DOUBLE
  119. #define ALIGN_OF_POINTER    PR_ALIGN_OF_POINTER
  120. #define ALIGN_OF_WORD        PR_ALIGN_OF_WORD
  121.  
  122. #define BYTES_PER_WORD_LOG2    PR_BYTES_PER_WORD_LOG2
  123. #define BYTES_PER_DWORD_LOG2    PR_BYTES_PER_DWORD_LOG2
  124. #define WORDS_PER_DWORD_LOG2    PR_WORDS_PER_DWORD_LOG2
  125.  
  126. #endif /* NO_NSPR_10_SUPPORT */
  127.  
  128. #endif /* nspr_cpucfg___ */
  129.