opensslconf-x86_64.h 7.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272
  1. /* Prepended at openssl package build-time. Don't include this file directly,
  2. * use <openssl/opensslconf.h> instead. */
  3. #ifndef openssl_opensslconf_multilib_redirection_h
  4. #error "Don't include this file directly, use <openssl/opensslconf.h> instead!"
  5. #endif
  6. /* opensslconf.h */
  7. /* WARNING: Generated automatically from opensslconf.h.in by Configure. */
  8. /* OpenSSL was configured with the following options: */
  9. #ifndef OPENSSL_DOING_MAKEDEPEND
  10. #ifndef OPENSSL_NO_EC2M
  11. # define OPENSSL_NO_EC2M
  12. #endif
  13. #ifndef OPENSSL_NO_EC_NISTP_64_GCC_128
  14. # define OPENSSL_NO_EC_NISTP_64_GCC_128
  15. #endif
  16. #ifndef OPENSSL_NO_GMP
  17. # define OPENSSL_NO_GMP
  18. #endif
  19. #ifndef OPENSSL_NO_GOST
  20. # define OPENSSL_NO_GOST
  21. #endif
  22. #ifndef OPENSSL_NO_JPAKE
  23. # define OPENSSL_NO_JPAKE
  24. #endif
  25. #ifndef OPENSSL_NO_MDC2
  26. # define OPENSSL_NO_MDC2
  27. #endif
  28. #ifndef OPENSSL_NO_RC5
  29. # define OPENSSL_NO_RC5
  30. #endif
  31. #ifndef OPENSSL_NO_RSAX
  32. # define OPENSSL_NO_RSAX
  33. #endif
  34. #ifndef OPENSSL_NO_SCTP
  35. # define OPENSSL_NO_SCTP
  36. #endif
  37. #ifndef OPENSSL_NO_SRP
  38. # define OPENSSL_NO_SRP
  39. #endif
  40. #ifndef OPENSSL_NO_STORE
  41. # define OPENSSL_NO_STORE
  42. #endif
  43. #endif /* OPENSSL_DOING_MAKEDEPEND */
  44. #ifndef OPENSSL_THREADS
  45. # define OPENSSL_THREADS
  46. #endif
  47. #ifndef OPENSSL_NO_STATIC_ENGINE
  48. # define OPENSSL_NO_STATIC_ENGINE
  49. #endif
  50. #ifndef OPENSSL_FIPS
  51. # define OPENSSL_FIPS
  52. #endif
  53. /* The OPENSSL_NO_* macros are also defined as NO_* if the application
  54. asks for it. This is a transient feature that is provided for those
  55. who haven't had the time to do the appropriate changes in their
  56. applications. */
  57. #ifdef OPENSSL_ALGORITHM_DEFINES
  58. # if defined(OPENSSL_NO_EC2M) && !defined(NO_EC2M)
  59. # define NO_EC2M
  60. # endif
  61. # if defined(OPENSSL_NO_EC_NISTP_64_GCC_128) && !defined(NO_EC_NISTP_64_GCC_128)
  62. # define NO_EC_NISTP_64_GCC_128
  63. # endif
  64. # if defined(OPENSSL_NO_GMP) && !defined(NO_GMP)
  65. # define NO_GMP
  66. # endif
  67. # if defined(OPENSSL_NO_GOST) && !defined(NO_GOST)
  68. # define NO_GOST
  69. # endif
  70. # if defined(OPENSSL_NO_JPAKE) && !defined(NO_JPAKE)
  71. # define NO_JPAKE
  72. # endif
  73. # if defined(OPENSSL_NO_MDC2) && !defined(NO_MDC2)
  74. # define NO_MDC2
  75. # endif
  76. # if defined(OPENSSL_NO_RC5) && !defined(NO_RC5)
  77. # define NO_RC5
  78. # endif
  79. # if defined(OPENSSL_NO_RSAX) && !defined(NO_RSAX)
  80. # define NO_RSAX
  81. # endif
  82. # if defined(OPENSSL_NO_SCTP) && !defined(NO_SCTP)
  83. # define NO_SCTP
  84. # endif
  85. # if defined(OPENSSL_NO_SRP) && !defined(NO_SRP)
  86. # define NO_SRP
  87. # endif
  88. # if defined(OPENSSL_NO_STORE) && !defined(NO_STORE)
  89. # define NO_STORE
  90. # endif
  91. #endif
  92. #define OPENSSL_CPUID_OBJ
  93. /* crypto/opensslconf.h.in */
  94. #ifdef OPENSSL_DOING_MAKEDEPEND
  95. /* Include any symbols here that have to be explicitly set to enable a feature
  96. * that should be visible to makedepend.
  97. *
  98. * [Our "make depend" doesn't actually look at this, we use actual build settings
  99. * instead; we want to make it easy to remove subdirectories with disabled algorithms.]
  100. */
  101. #ifndef OPENSSL_FIPS
  102. #define OPENSSL_FIPS
  103. #endif
  104. #endif
  105. /* Generate 80386 code? */
  106. #undef I386_ONLY
  107. #if !(defined(VMS) || defined(__VMS)) /* VMS uses logical names instead */
  108. #if defined(HEADER_CRYPTLIB_H) && !defined(OPENSSLDIR)
  109. #define ENGINESDIR "/usr/lib64/openssl/engines"
  110. #define OPENSSLDIR "/etc/pki/tls"
  111. #endif
  112. #endif
  113. #undef OPENSSL_UNISTD
  114. #define OPENSSL_UNISTD <unistd.h>
  115. #undef OPENSSL_EXPORT_VAR_AS_FUNCTION
  116. #if defined(HEADER_IDEA_H) && !defined(IDEA_INT)
  117. #define IDEA_INT unsigned int
  118. #endif
  119. #if defined(HEADER_MD2_H) && !defined(MD2_INT)
  120. #define MD2_INT unsigned int
  121. #endif
  122. #if defined(HEADER_RC2_H) && !defined(RC2_INT)
  123. /* I need to put in a mod for the alpha - eay */
  124. #define RC2_INT unsigned int
  125. #endif
  126. #if defined(HEADER_RC4_H)
  127. #if !defined(RC4_INT)
  128. /* using int types make the structure larger but make the code faster
  129. * on most boxes I have tested - up to %20 faster. */
  130. /*
  131. * I don't know what does "most" mean, but declaring "int" is a must on:
  132. * - Intel P6 because partial register stalls are very expensive;
  133. * - elder Alpha because it lacks byte load/store instructions;
  134. */
  135. #define RC4_INT unsigned int
  136. #endif
  137. #if !defined(RC4_CHUNK)
  138. /*
  139. * This enables code handling data aligned at natural CPU word
  140. * boundary. See crypto/rc4/rc4_enc.c for further details.
  141. */
  142. #define RC4_CHUNK unsigned long
  143. #endif
  144. #endif
  145. #if (defined(HEADER_NEW_DES_H) || defined(HEADER_DES_H)) && !defined(DES_LONG)
  146. /* If this is set to 'unsigned int' on a DEC Alpha, this gives about a
  147. * %20 speed up (longs are 8 bytes, int's are 4). */
  148. #ifndef DES_LONG
  149. #define DES_LONG unsigned int
  150. #endif
  151. #endif
  152. #if defined(HEADER_BN_H) && !defined(CONFIG_HEADER_BN_H)
  153. #define CONFIG_HEADER_BN_H
  154. #undef BN_LLONG
  155. /* Should we define BN_DIV2W here? */
  156. /* Only one for the following should be defined */
  157. #define SIXTY_FOUR_BIT_LONG
  158. #undef SIXTY_FOUR_BIT
  159. #undef THIRTY_TWO_BIT
  160. #endif
  161. #if defined(HEADER_RC4_LOCL_H) && !defined(CONFIG_HEADER_RC4_LOCL_H)
  162. #define CONFIG_HEADER_RC4_LOCL_H
  163. /* if this is defined data[i] is used instead of *data, this is a %20
  164. * speedup on x86 */
  165. #undef RC4_INDEX
  166. #endif
  167. #if defined(HEADER_BF_LOCL_H) && !defined(CONFIG_HEADER_BF_LOCL_H)
  168. #define CONFIG_HEADER_BF_LOCL_H
  169. #undef BF_PTR
  170. #endif /* HEADER_BF_LOCL_H */
  171. #if defined(HEADER_DES_LOCL_H) && !defined(CONFIG_HEADER_DES_LOCL_H)
  172. #define CONFIG_HEADER_DES_LOCL_H
  173. #ifndef DES_DEFAULT_OPTIONS
  174. /* the following is tweaked from a config script, that is why it is a
  175. * protected undef/define */
  176. #ifndef DES_PTR
  177. #undef DES_PTR
  178. #endif
  179. /* This helps C compiler generate the correct code for multiple functional
  180. * units. It reduces register dependancies at the expense of 2 more
  181. * registers */
  182. #ifndef DES_RISC1
  183. #undef DES_RISC1
  184. #endif
  185. #ifndef DES_RISC2
  186. #undef DES_RISC2
  187. #endif
  188. #if defined(DES_RISC1) && defined(DES_RISC2)
  189. YOU SHOULD NOT HAVE BOTH DES_RISC1 AND DES_RISC2 DEFINED!!!!!
  190. #endif
  191. /* Unroll the inner loop, this sometimes helps, sometimes hinders.
  192. * Very mucy CPU dependant */
  193. #ifndef DES_UNROLL
  194. #define DES_UNROLL
  195. #endif
  196. /* These default values were supplied by
  197. * Peter Gutman <pgut001@cs.auckland.ac.nz>
  198. * They are only used if nothing else has been defined */
  199. #if !defined(DES_PTR) && !defined(DES_RISC1) && !defined(DES_RISC2) && !defined(DES_UNROLL)
  200. /* Special defines which change the way the code is built depending on the
  201. CPU and OS. For SGI machines you can use _MIPS_SZLONG (32 or 64) to find
  202. even newer MIPS CPU's, but at the moment one size fits all for
  203. optimization options. Older Sparc's work better with only UNROLL, but
  204. there's no way to tell at compile time what it is you're running on */
  205. #if defined( sun ) /* Newer Sparc's */
  206. # define DES_PTR
  207. # define DES_RISC1
  208. # define DES_UNROLL
  209. #elif defined( __ultrix ) /* Older MIPS */
  210. # define DES_PTR
  211. # define DES_RISC2
  212. # define DES_UNROLL
  213. #elif defined( __osf1__ ) /* Alpha */
  214. # define DES_PTR
  215. # define DES_RISC2
  216. #elif defined ( _AIX ) /* RS6000 */
  217. /* Unknown */
  218. #elif defined( __hpux ) /* HP-PA */
  219. /* Unknown */
  220. #elif defined( __aux ) /* 68K */
  221. /* Unknown */
  222. #elif defined( __dgux ) /* 88K (but P6 in latest boxes) */
  223. # define DES_UNROLL
  224. #elif defined( __sgi ) /* Newer MIPS */
  225. # define DES_PTR
  226. # define DES_RISC2
  227. # define DES_UNROLL
  228. #elif defined(i386) || defined(__i386__) /* x86 boxes, should be gcc */
  229. # define DES_PTR
  230. # define DES_RISC1
  231. # define DES_UNROLL
  232. #endif /* Systems-specific speed defines */
  233. #endif
  234. #endif /* DES_DEFAULT_OPTIONS */
  235. #endif /* HEADER_DES_LOCL_H */