config.h 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286
  1. // config.h
  2. //
  3. // Autogenerated from config.h.in by bsconf.
  4. //
  5. #ifndef CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
  6. #define CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F
  7. // Define to the one symbol short name of this package.
  8. #define USTL_NAME "ustl"
  9. // Define to the full name and version of this package.
  10. #define USTL_STRING "ustl 0.8"
  11. // Define to the version of this package.
  12. #define USTL_VERSION 0x080
  13. // Define to the address where bug reports for this package should be sent.
  14. #define USTL_BUGREPORT "Mike Sharov <msharov@users.sourceforge.net>"
  15. /// Define to 1 if you want stream operations to throw exceptions on
  16. /// insufficient data or insufficient space. All these errors should
  17. /// be preventable in output code; the input code should verify the
  18. /// data in a separate step. It slows down stream operations a lot,
  19. /// but it's your call. By default only debug builds throw.
  20. ///
  21. #undef WANT_STREAM_BOUNDS_CHECKING
  22. #if !defined(WANT_STREAM_BOUNDS_CHECKING) && !defined(NDEBUG)
  23. #define WANT_STREAM_BOUNDS_CHECKING 1
  24. #endif
  25. /// Define to 1 if you want to build without libstdc++
  26. #define WITHOUT_LIBSTDCPP 1
  27. /// Define to 1 if you don't want the standard streams.
  28. /// You will not be able to run bvt tests if you do this.
  29. ///
  30. #undef WITHOUT_CIN_COUT_CERR
  31. /// Define GNU extensions if unavailable.
  32. #ifndef __GNUC__
  33. /// GCC (and some other compilers) define '__attribute__'; ustl is using this
  34. /// macro to alert the compiler to flag inconsistencies in printf/scanf-like
  35. /// function calls. Just in case '__attribute__' isn't defined, make a dummy.
  36. ///
  37. #ifndef __attribute__
  38. #define __attribute__(p)
  39. #endif
  40. #endif
  41. #if defined(__GNUC__) && (__GNUC__ >= 4)
  42. #define DLL_EXPORT __attribute__((visibility("default")))
  43. #define DLL_LOCAL __attribute__((visibility("hidden")))
  44. #else
  45. #define DLL_EXPORT
  46. #define DLL_LOCAL
  47. #endif
  48. #if defined(__GNUC__) && (__GNUC__ >= 3) && defined(__i386__)
  49. /// GCC 3+ supports the prefetch directive, which some CPUs use to improve caching
  50. #define prefetch(p,rw,loc) __builtin_prefetch(p,rw,loc)
  51. #else
  52. #define prefetch(p,rw,loc)
  53. #endif
  54. #if !defined(__GNUC__) || (__GNUC__ < 3)
  55. /// __alignof__ returns the recommended alignment for the type
  56. #define __alignof__(v) min(sizeof(v), sizeof(void*))
  57. #endif
  58. /// Define to 1 if you have the `atexit' function.
  59. #define HAVE_ATEXIT 1
  60. /// Define to 1 if you have the <assert.h> header file.
  61. #define HAVE_ASSERT_H 1
  62. /// Define to 1 if you have the <ctype.h> header file.
  63. #define HAVE_CTYPE_H 1
  64. /// Define to 1 if you have the <errno.h> header file.
  65. #define HAVE_ERRNO_H 1
  66. /// Define to 1 if you have the <fcntl.h> header file.
  67. #define HAVE_FCNTL_H 1
  68. /// Define to 1 if you have the <float.h> header file.
  69. #define HAVE_FLOAT_H 1
  70. /// Define to 1 if you have the <inttypes.h> header file.
  71. #define HAVE_INTTYPES_H 1
  72. /// Define to 1 if you have the <limits.h> header file.
  73. #define HAVE_LIMITS_H 1
  74. /// Define to 1 if you have the <locale.h> header file.
  75. #define HAVE_LOCALE_H 1
  76. /// Define to 1 if your system has a working `malloc' function.
  77. #define HAVE_MALLOC 1
  78. // Define to 1 if you have the <malloc.h> header file.
  79. #define HAVE_MALLOC_H 1
  80. // Define to 1 if you have the <alloca.h> header file.
  81. #define HAVE_ALLOCA_H 1
  82. // Define to 1 if you have the `memchr' function.
  83. #define HAVE_MEMCHR 1
  84. // Define to 1 if you have the `memmove' function.
  85. #define HAVE_MEMMOVE 1
  86. // Define to 1 if you have the <memory.h> header file.
  87. #define HAVE_MEMORY_H 1
  88. // Define to 1 if you have the `memset' function.
  89. #define HAVE_MEMSET 1
  90. // Define to 1 if the system has the type `ptrdiff_t'.
  91. #define HAVE_PTRDIFF_T 1
  92. // Define to 1 if you have the <signal.h> header file.
  93. #define HAVE_SIGNAL_H 1
  94. // Define to 1 if you have the __va_copy function
  95. #define HAVE_VA_COPY 1
  96. // Define to 1 if `stat' has the bug that it succeeds when given the
  97. // zero-length file name argument.
  98. /* #undef HAVE_STAT_EMPTY_STRING_BUG */
  99. // Define to 1 if you have the <stdarg.h> header file.
  100. #define HAVE_STDARG_H 1
  101. // Define to 1 if you have the <stddef.h> header file.
  102. #define HAVE_STDDEF_H 1
  103. // Define to 1 if you have the <stdint.h> header file.
  104. #define HAVE_STDINT_H 1
  105. // Define to 1 if you have the <stdio.h> header file.
  106. #define HAVE_STDIO_H 1
  107. // Define to 1 if you have the <stdlib.h> header file.
  108. #define HAVE_STDLIB_H 1
  109. // Define to 1 if you have the `strerror' function.
  110. #define HAVE_STRERROR 1
  111. // Define to 1 if you have the <strings.h> header file.
  112. #define HAVE_STRINGS_H 1
  113. // Define to 1 if you have the <string.h> header file.
  114. #define HAVE_STRING_H 1
  115. // Define to 1 if you have the `strrchr' function.
  116. #define HAVE_STRRCHR 1
  117. // Define to 1 if you have the `strsignal' function.
  118. #define HAVE_STRSIGNAL 1
  119. // Define to 1 if you have the `strtol' function.
  120. #define HAVE_STRTOL 1
  121. // Define to 1 if you have the <sys/stat.h> header file.
  122. #define HAVE_SYS_STAT_H 1
  123. // Define to 1 if you have the <sys/types.h> header file.
  124. #define HAVE_SYS_TYPES_H 1
  125. // Define to 1 if you have <sys/wait.h> that is POSIX.1 compatible.
  126. #define HAVE_SYS_WAIT_H 1
  127. // Define to 1 if you have the <time.h> header file.
  128. #define HAVE_TIME_H 1
  129. // Define to 1 if you have the <unistd.h> header file.
  130. #define HAVE_UNISTD_H 1
  131. // Define to 1 if you have the <math.h> header file.
  132. #define HAVE_MATH_H 1
  133. // Define to 1 if you have the rintf function. Will use rint otherwise.
  134. #undef HAVE_RINTF
  135. // STDC_HEADERS is defined to 1 on sane systems.
  136. #if defined(HAVE_ASSERT_H) && defined(HAVE_CTYPE_H) &&\
  137. defined(HAVE_ERRNO_H) && defined(HAVE_FLOAT_H) &&\
  138. defined(HAVE_LIMITS_H) && defined(HAVE_LOCALE_H) &&\
  139. defined(HAVE_MATH_H) && defined(HAVE_SIGNAL_H) &&\
  140. defined(HAVE_STDARG_H) && defined(HAVE_STDDEF_H) &&\
  141. defined(HAVE_STDIO_H) && defined(HAVE_STDLIB_H) &&\
  142. defined(HAVE_STRING_H) && defined(HAVE_TIME_H)
  143. #define STDC_HEADERS 1
  144. #endif
  145. // STDC_HEADERS is defined to 1 on unix systems.
  146. #if defined(HAVE_FCNTL_H) && defined(HAVE_SYS_STAT_H) && defined(HAVE_UNISTD_H)
  147. #define STDUNIX_HEADERS 1
  148. #endif
  149. // Define to 1 if you have the <byteswap.h> header file.
  150. #if (__GNUC__ >= 3) // gcc 2.95 somehow doesn't recognize 'asm volatile' in libc byteswap.h
  151. #define HAVE_BYTESWAP_H 1
  152. #endif
  153. // Define to 1 if `lstat' dereferences a symlink specified with a trailing slash.
  154. #define LSTAT_FOLLOWS_SLASHED_SYMLINK 1
  155. // Define to 1 if your compiler treats char as a separate type along with
  156. // signed char and unsigned char. This will create overloads for char.
  157. #define HAVE_THREE_CHAR_TYPES 1
  158. // Define as the return type of signal handlers (`int' or `void').
  159. #define RETSIGTYPE void
  160. // Define to 1 if you have 64 bit types available
  161. #define HAVE_INT64_T 1
  162. // Define to 1 if you have the long long type
  163. #define HAVE_LONG_LONG 1
  164. // Define to 1 if you want unrolled specializations for fill and copy
  165. #undef WANT_UNROLLED_COPY
  166. // Define to 1 if you want to use MMX/SSE/3dNow! processor instructions
  167. #undef WANT_MMX
  168. // Define to byte sizes of types
  169. #define SIZE_OF_CHAR 1
  170. #define SIZE_OF_SHORT 2
  171. #define SIZE_OF_INT 4
  172. #define SIZE_OF_LONG 4
  173. #define SIZE_OF_LONG_LONG 8
  174. #define SIZE_OF_POINTER 4
  175. #define SIZE_OF_SIZE_T 4
  176. #define SIZE_OF_BOOL SIZE_OF_CHAR
  177. #undef SIZE_T_IS_LONG
  178. // Byte order macros, converted in utypes.h
  179. #define USTL_LITTLE_ENDIAN 4321
  180. #define USTL_BIG_ENDIAN 1234
  181. #define USTL_BYTE_ORDER USTL_LITTLE_ENDIAN
  182. // Extended CPU capabilities
  183. #define CPU_HAS_FPU 1
  184. #define CPU_HAS_EXT_DEBUG 1
  185. #define CPU_HAS_TIMESTAMPC 1
  186. #define CPU_HAS_MSR 1
  187. #define CPU_HAS_CMPXCHG8 1
  188. #define CPU_HAS_APIC 1
  189. #define CPU_HAS_SYSCALL 1
  190. #define CPU_HAS_MTRR 1
  191. #define CPU_HAS_CMOV 1
  192. #define CPU_HAS_FCMOV 1
  193. #if WANT_MMX
  194. #undef CPU_HAS_MMX 1
  195. #undef CPU_HAS_FXSAVE
  196. #undef CPU_HAS_SSE 1
  197. #undef CPU_HAS_SSE2 1
  198. #undef CPU_HAS_SSE3
  199. #undef CPU_HAS_EXT_3DNOW
  200. #undef CPU_HAS_3DNOW
  201. #endif
  202. // GCC vector extensions
  203. #if defined(CPU_HAS_MMX) || defined(CPU_HAS_SSE)
  204. #undef HAVE_VECTOR_EXTENSIONS
  205. #endif
  206. #if CPU_HAS_SSE && defined(__GNUC__)
  207. #define __sse_align __attribute__((aligned(16)))
  208. #else
  209. #define __sse_align
  210. #endif
  211. // Define to empty if `const' does not conform to ANSI C.
  212. /* #define const */
  213. // Define as `__inline' if that's what the C compiler calls it, or to nothing
  214. // if it is not supported.
  215. /* #define inline __inline */
  216. // Define to `long' if <sys/types.h> does not define.
  217. /* typedef long off_t; */
  218. // Define to `unsigned' if <sys/types.h> does not define.
  219. /* typedef long size_t; */
  220. #endif // CONFIG_H_01E33670634DAAC779EE5FF41CCBB36F