PageRenderTime 38ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/gecko_api/include/md/_freebsd.cfg

http://firefox-mac-pdf.googlecode.com/
Unknown | 337 lines | 291 code | 46 blank | 0 comment | 0 complexity | 9b4306671699209aa34f3eca30b32460 MD5 | raw file
  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
  2. /* ***** BEGIN LICENSE BLOCK *****
  3. * Version: MPL 1.1/GPL 2.0/LGPL 2.1
  4. *
  5. * The contents of this file are subject to the Mozilla Public License Version
  6. * 1.1 (the "License"); you may not use this file except in compliance with
  7. * the License. You may obtain a copy of the License at
  8. * http://www.mozilla.org/MPL/
  9. *
  10. * Software distributed under the License is distributed on an "AS IS" basis,
  11. * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
  12. * for the specific language governing rights and limitations under the
  13. * License.
  14. *
  15. * The Original Code is the Netscape Portable Runtime (NSPR).
  16. *
  17. * The Initial Developer of the Original Code is
  18. * Netscape Communications Corporation.
  19. * Portions created by the Initial Developer are Copyright (C) 1998-2000
  20. * the Initial Developer. All Rights Reserved.
  21. *
  22. * Contributor(s):
  23. *
  24. * Alternatively, the contents of this file may be used under the terms of
  25. * either the GNU General Public License Version 2 or later (the "GPL"), or
  26. * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
  27. * in which case the provisions of the GPL or the LGPL are applicable instead
  28. * of those above. If you wish to allow use of your version of this file only
  29. * under the terms of either the GPL or the LGPL, and not to allow others to
  30. * use your version of this file under the terms of the MPL, indicate your
  31. * decision by deleting the provisions above and replace them with the notice
  32. * and other provisions required by the GPL or the LGPL. If you do not delete
  33. * the provisions above, a recipient may use your version of this file under
  34. * the terms of any one of the MPL, the GPL or the LGPL.
  35. *
  36. * ***** END LICENSE BLOCK ***** */
  37. #ifndef nspr_cpucfg___
  38. #define nspr_cpucfg___
  39. #ifndef XP_UNIX
  40. #define XP_UNIX
  41. #endif
  42. #ifndef FREEBSD
  43. #define FREEBSD
  44. #endif
  45. #define PR_AF_INET6 28 /* same as AF_INET6 */
  46. #ifndef HAVE_LONG_LONG
  47. #define HAVE_LONG_LONG
  48. #endif
  49. #if defined(__i386__)
  50. #define IS_LITTLE_ENDIAN 1
  51. #undef IS_BIG_ENDIAN
  52. #undef HAVE_ALIGNED_DOUBLES
  53. #undef HAVE_ALIGNED_LONGLONGS
  54. #define PR_BYTES_PER_BYTE 1
  55. #define PR_BYTES_PER_SHORT 2
  56. #define PR_BYTES_PER_INT 4
  57. #define PR_BYTES_PER_INT64 8
  58. #define PR_BYTES_PER_LONG 4
  59. #define PR_BYTES_PER_FLOAT 4
  60. #define PR_BYTES_PER_DOUBLE 8
  61. #define PR_BYTES_PER_WORD 4
  62. #define PR_BYTES_PER_DWORD 8
  63. #define PR_BYTES_PER_WORD_LOG2 2
  64. #define PR_BYTES_PER_DWORD_LOG2 3
  65. #define PR_BITS_PER_BYTE 8
  66. #define PR_BITS_PER_SHORT 16
  67. #define PR_BITS_PER_INT 32
  68. #define PR_BITS_PER_INT64 64
  69. #define PR_BITS_PER_LONG 32
  70. #define PR_BITS_PER_FLOAT 32
  71. #define PR_BITS_PER_DOUBLE 64
  72. #define PR_BITS_PER_WORD 32
  73. #define PR_BITS_PER_BYTE_LOG2 3
  74. #define PR_BITS_PER_SHORT_LOG2 4
  75. #define PR_BITS_PER_INT_LOG2 5
  76. #define PR_BITS_PER_INT64_LOG2 6
  77. #define PR_BITS_PER_LONG_LOG2 5
  78. #define PR_BITS_PER_FLOAT_LOG2 5
  79. #define PR_BITS_PER_DOUBLE_LOG2 6
  80. #define PR_BITS_PER_WORD_LOG2 5
  81. #define PR_ALIGN_OF_SHORT 2
  82. #define PR_ALIGN_OF_INT 4
  83. #define PR_ALIGN_OF_LONG 4
  84. #define PR_ALIGN_OF_INT64 4
  85. #define PR_ALIGN_OF_FLOAT 4
  86. #define PR_ALIGN_OF_DOUBLE 4
  87. #define PR_ALIGN_OF_POINTER 4
  88. #elif defined(__alpha__)
  89. #define IS_LITTLE_ENDIAN 1
  90. #undef IS_BIG_ENDIAN
  91. #define HAVE_ALIGNED_DOUBLES
  92. #define HAVE_ALIGNED_LONGLONGS
  93. #define IS_64
  94. #define PR_BYTES_PER_BYTE 1
  95. #define PR_BYTES_PER_SHORT 2
  96. #define PR_BYTES_PER_INT 4
  97. #define PR_BYTES_PER_INT64 8
  98. #define PR_BYTES_PER_LONG 8
  99. #define PR_BYTES_PER_FLOAT 4
  100. #define PR_BYTES_PER_DOUBLE 8
  101. #define PR_BYTES_PER_WORD 8
  102. #define PR_BYTES_PER_DWORD 8
  103. #define PR_BYTES_PER_WORD_LOG2 3
  104. #define PR_BYTES_PER_DWORD_LOG2 3
  105. #define PR_BITS_PER_BYTE 8
  106. #define PR_BITS_PER_SHORT 16
  107. #define PR_BITS_PER_INT 32
  108. #define PR_BITS_PER_INT64 64
  109. #define PR_BITS_PER_LONG 64
  110. #define PR_BITS_PER_FLOAT 32
  111. #define PR_BITS_PER_DOUBLE 64
  112. #define PR_BITS_PER_WORD 64
  113. #define PR_BITS_PER_BYTE_LOG2 3
  114. #define PR_BITS_PER_SHORT_LOG2 4
  115. #define PR_BITS_PER_INT_LOG2 5
  116. #define PR_BITS_PER_INT64_LOG2 6
  117. #define PR_BITS_PER_LONG_LOG2 6
  118. #define PR_BITS_PER_FLOAT_LOG2 5
  119. #define PR_BITS_PER_DOUBLE_LOG2 6
  120. #define PR_BITS_PER_WORD_LOG2 6
  121. #define PR_ALIGN_OF_SHORT 2
  122. #define PR_ALIGN_OF_INT 4
  123. #define PR_ALIGN_OF_LONG 8
  124. #define PR_ALIGN_OF_INT64 8
  125. #define PR_ALIGN_OF_FLOAT 4
  126. #define PR_ALIGN_OF_DOUBLE 8
  127. #define PR_ALIGN_OF_POINTER 8
  128. #elif defined(__sparc__)
  129. #undef IS_LITTLE_ENDIAN
  130. #define IS_BIG_ENDIAN 1
  131. #define HAVE_ALIGNED_DOUBLES
  132. #define HAVE_ALIGNED_LONGLONGS
  133. #define IS_64
  134. #define PR_BYTES_PER_BYTE 1
  135. #define PR_BYTES_PER_SHORT 2
  136. #define PR_BYTES_PER_INT 4
  137. #define PR_BYTES_PER_INT64 8
  138. #define PR_BYTES_PER_LONG 8
  139. #define PR_BYTES_PER_FLOAT 4
  140. #define PR_BYTES_PER_DOUBLE 8
  141. #define PR_BYTES_PER_WORD 8
  142. #define PR_BYTES_PER_DWORD 8
  143. #define PR_BYTES_PER_WORD_LOG2 3
  144. #define PR_BYTES_PER_DWORD_LOG2 3
  145. #define PR_BITS_PER_BYTE 8
  146. #define PR_BITS_PER_SHORT 16
  147. #define PR_BITS_PER_INT 32
  148. #define PR_BITS_PER_INT64 64
  149. #define PR_BITS_PER_LONG 64
  150. #define PR_BITS_PER_FLOAT 32
  151. #define PR_BITS_PER_DOUBLE 64
  152. #define PR_BITS_PER_WORD 64
  153. #define PR_BITS_PER_BYTE_LOG2 3
  154. #define PR_BITS_PER_SHORT_LOG2 4
  155. #define PR_BITS_PER_INT_LOG2 5
  156. #define PR_BITS_PER_INT64_LOG2 6
  157. #define PR_BITS_PER_LONG_LOG2 6
  158. #define PR_BITS_PER_FLOAT_LOG2 5
  159. #define PR_BITS_PER_DOUBLE_LOG2 6
  160. #define PR_BITS_PER_WORD_LOG2 6
  161. #define PR_ALIGN_OF_SHORT 2
  162. #define PR_ALIGN_OF_INT 4
  163. #define PR_ALIGN_OF_LONG 8
  164. #define PR_ALIGN_OF_INT64 8
  165. #define PR_ALIGN_OF_FLOAT 4
  166. #define PR_ALIGN_OF_DOUBLE 8
  167. #define PR_ALIGN_OF_POINTER 8
  168. #elif defined(__ia64__)
  169. #define IS_LITTLE_ENDIAN 1
  170. #undef IS_BIG_ENDIAN
  171. #define HAVE_ALIGNED_DOUBLES
  172. #define HAVE_ALIGNED_LONGLONGS
  173. #define IS_64
  174. #define PR_BYTES_PER_BYTE 1
  175. #define PR_BYTES_PER_SHORT 2
  176. #define PR_BYTES_PER_INT 4
  177. #define PR_BYTES_PER_INT64 8
  178. #define PR_BYTES_PER_LONG 8
  179. #define PR_BYTES_PER_FLOAT 4
  180. #define PR_BYTES_PER_DOUBLE 8
  181. #define PR_BYTES_PER_WORD 8
  182. #define PR_BYTES_PER_DWORD 8
  183. #define PR_BYTES_PER_WORD_LOG2 3
  184. #define PR_BYTES_PER_DWORD_LOG2 3
  185. #define PR_BITS_PER_BYTE 8
  186. #define PR_BITS_PER_SHORT 16
  187. #define PR_BITS_PER_INT 32
  188. #define PR_BITS_PER_INT64 64
  189. #define PR_BITS_PER_LONG 64
  190. #define PR_BITS_PER_FLOAT 32
  191. #define PR_BITS_PER_DOUBLE 64
  192. #define PR_BITS_PER_WORD 64
  193. #define PR_BITS_PER_BYTE_LOG2 3
  194. #define PR_BITS_PER_SHORT_LOG2 4
  195. #define PR_BITS_PER_INT_LOG2 5
  196. #define PR_BITS_PER_INT64_LOG2 6
  197. #define PR_BITS_PER_LONG_LOG2 6
  198. #define PR_BITS_PER_FLOAT_LOG2 5
  199. #define PR_BITS_PER_DOUBLE_LOG2 6
  200. #define PR_BITS_PER_WORD_LOG2 6
  201. #define PR_ALIGN_OF_SHORT 2
  202. #define PR_ALIGN_OF_INT 4
  203. #define PR_ALIGN_OF_LONG 8
  204. #define PR_ALIGN_OF_INT64 8
  205. #define PR_ALIGN_OF_FLOAT 4
  206. #define PR_ALIGN_OF_DOUBLE 8
  207. #define PR_ALIGN_OF_POINTER 8
  208. #define PR_ALIGN_OF_WORD 8
  209. #elif defined(__amd64__)
  210. #define IS_LITTLE_ENDIAN 1
  211. #undef IS_BIG_ENDIAN
  212. #define HAVE_ALIGNED_DOUBLES
  213. #define HAVE_ALIGNED_LONGLONGS
  214. #define IS_64
  215. #define PR_BYTES_PER_BYTE 1
  216. #define PR_BYTES_PER_SHORT 2
  217. #define PR_BYTES_PER_INT 4
  218. #define PR_BYTES_PER_INT64 8
  219. #define PR_BYTES_PER_LONG 8
  220. #define PR_BYTES_PER_FLOAT 4
  221. #define PR_BYTES_PER_DOUBLE 8
  222. #define PR_BYTES_PER_WORD 8
  223. #define PR_BYTES_PER_DWORD 8
  224. #define PR_BYTES_PER_WORD_LOG2 3
  225. #define PR_BYTES_PER_DWORD_LOG2 3
  226. #define PR_BITS_PER_BYTE 8
  227. #define PR_BITS_PER_SHORT 16
  228. #define PR_BITS_PER_INT 32
  229. #define PR_BITS_PER_INT64 64
  230. #define PR_BITS_PER_LONG 64
  231. #define PR_BITS_PER_FLOAT 32
  232. #define PR_BITS_PER_DOUBLE 64
  233. #define PR_BITS_PER_WORD 64
  234. #define PR_BITS_PER_BYTE_LOG2 3
  235. #define PR_BITS_PER_SHORT_LOG2 4
  236. #define PR_BITS_PER_INT_LOG2 5
  237. #define PR_BITS_PER_INT64_LOG2 6
  238. #define PR_BITS_PER_LONG_LOG2 6
  239. #define PR_BITS_PER_FLOAT_LOG2 5
  240. #define PR_BITS_PER_DOUBLE_LOG2 6
  241. #define PR_BITS_PER_WORD_LOG2 6
  242. #define PR_ALIGN_OF_SHORT 2
  243. #define PR_ALIGN_OF_INT 4
  244. #define PR_ALIGN_OF_LONG 8
  245. #define PR_ALIGN_OF_INT64 8
  246. #define PR_ALIGN_OF_FLOAT 4
  247. #define PR_ALIGN_OF_DOUBLE 8
  248. #define PR_ALIGN_OF_POINTER 8
  249. #define PR_ALIGN_OF_WORD 8
  250. #else
  251. #error "Unknown CPU architecture"
  252. #endif
  253. #ifndef NO_NSPR_10_SUPPORT
  254. #define BYTES_PER_BYTE PR_BYTES_PER_BYTE
  255. #define BYTES_PER_SHORT PR_BYTES_PER_SHORT
  256. #define BYTES_PER_INT PR_BYTES_PER_INT
  257. #define BYTES_PER_INT64 PR_BYTES_PER_INT64
  258. #define BYTES_PER_LONG PR_BYTES_PER_LONG
  259. #define BYTES_PER_FLOAT PR_BYTES_PER_FLOAT
  260. #define BYTES_PER_DOUBLE PR_BYTES_PER_DOUBLE
  261. #define BYTES_PER_WORD PR_BYTES_PER_WORD
  262. #define BYTES_PER_DWORD PR_BYTES_PER_DWORD
  263. #define BITS_PER_BYTE PR_BITS_PER_BYTE
  264. #define BITS_PER_SHORT PR_BITS_PER_SHORT
  265. #define BITS_PER_INT PR_BITS_PER_INT
  266. #define BITS_PER_INT64 PR_BITS_PER_INT64
  267. #define BITS_PER_LONG PR_BITS_PER_LONG
  268. #define BITS_PER_FLOAT PR_BITS_PER_FLOAT
  269. #define BITS_PER_DOUBLE PR_BITS_PER_DOUBLE
  270. #define BITS_PER_WORD PR_BITS_PER_WORD
  271. #define BITS_PER_BYTE_LOG2 PR_BITS_PER_BYTE_LOG2
  272. #define BITS_PER_SHORT_LOG2 PR_BITS_PER_SHORT_LOG2
  273. #define BITS_PER_INT_LOG2 PR_BITS_PER_INT_LOG2
  274. #define BITS_PER_INT64_LOG2 PR_BITS_PER_INT64_LOG2
  275. #define BITS_PER_LONG_LOG2 PR_BITS_PER_LONG_LOG2
  276. #define BITS_PER_FLOAT_LOG2 PR_BITS_PER_FLOAT_LOG2
  277. #define BITS_PER_DOUBLE_LOG2 PR_BITS_PER_DOUBLE_LOG2
  278. #define BITS_PER_WORD_LOG2 PR_BITS_PER_WORD_LOG2
  279. #define ALIGN_OF_SHORT PR_ALIGN_OF_SHORT
  280. #define ALIGN_OF_INT PR_ALIGN_OF_INT
  281. #define ALIGN_OF_LONG PR_ALIGN_OF_LONG
  282. #define ALIGN_OF_INT64 PR_ALIGN_OF_INT64
  283. #define ALIGN_OF_FLOAT PR_ALIGN_OF_FLOAT
  284. #define ALIGN_OF_DOUBLE PR_ALIGN_OF_DOUBLE
  285. #define ALIGN_OF_POINTER PR_ALIGN_OF_POINTER
  286. #define ALIGN_OF_WORD PR_ALIGN_OF_WORD
  287. #define BYTES_PER_WORD_LOG2 PR_BYTES_PER_WORD_LOG2
  288. #define BYTES_PER_DWORD_LOG2 PR_BYTES_PER_DWORD_LOG2
  289. #define WORDS_PER_DWORD_LOG2 PR_WORDS_PER_DWORD_LOG2
  290. #endif /* NO_NSPR_10_SUPPORT */
  291. #endif /* nspr_cpucfg___ */