17 #ifndef CRYPTOPP_CONFIG_CPU_H 18 #define CRYPTOPP_CONFIG_CPU_H 22 #if (defined(__ILP32__) || defined(_ILP32)) && defined(__x86_64__) 23 #define CRYPTOPP_BOOL_X32 1 24 #elif (defined(_M_X64) || defined(__x86_64__)) 25 #define CRYPTOPP_BOOL_X64 1 26 #elif (defined(_M_IX86) || defined(__i386__) || defined(__i386) || defined(_X86_) || defined(__I86__) || defined(__INTEL__)) 27 #define CRYPTOPP_BOOL_X86 1 31 #if defined(__arm64__) || defined(__aarch32__) || defined(__aarch64__) || defined(_M_ARM64) 32 #define CRYPTOPP_BOOL_ARMV8 1 34 #if defined(__arm64__) || defined(__aarch64__) || defined(_M_ARM64) 35 #define CRYPTOPP_BOOL_ARM64 1 36 #elif defined(__arm__) || defined(_M_ARM) 37 #define CRYPTOPP_BOOL_ARM32 1 41 #if defined(__ppc64__) || defined(__powerpc64__) || defined(__PPC64__) || defined(_ARCH_PPC64) 42 #define CRYPTOPP_BOOL_PPC64 1 43 #elif defined(__powerpc__) || defined(__ppc__) || defined(__PPC__) || defined(_ARCH_PPC) 44 #define CRYPTOPP_BOOL_PPC32 1 48 #if defined(__mips64__) 49 #define CRYPTOPP_BOOL_MIPS64 1 50 #elif defined(__mips__) 51 #define CRYPTOPP_BOOL_MIPS32 1 55 #if defined(__sparc64__) || defined(__sparc64) || defined(__sparcv9) || defined(__sparc_v9__) 56 #define CRYPTOPP_BOOL_SPARC64 1 57 #elif defined(__sparc__) || defined(__sparc) || defined(__sparcv8) || defined(__sparc_v8__) 58 #define CRYPTOPP_BOOL_SPARC32 1 63 #ifndef CRYPTOPP_L1_CACHE_LINE_SIZE 64 #if defined(CRYPTOPP_BOOL_X32) || defined(CRYPTOPP_BOOL_X64) || defined(CRYPTOPP_BOOL_ARMV8) || \ 65 defined(CRYPTOPP_BOOL_PPC64) || defined(CRYPTOPP_BOOL_MIPS64) || defined(CRYPTOPP_BOOL_SPARC64) 66 #define CRYPTOPP_L1_CACHE_LINE_SIZE 64 69 #define CRYPTOPP_L1_CACHE_LINE_SIZE 32 74 #if ((defined(__MACH__) && defined(__APPLE__)) && ((CRYPTOPP_LLVM_CLANG_VERSION >= 30600) || (CRYPTOPP_APPLE_CLANG_VERSION >= 70100) || (CRYPTOPP_GCC_VERSION >= 40300))) 75 #define CRYPTOPP_SECTION_INIT __attribute__((section ("__DATA,__data"))) 76 #elif (defined(__ELF__) && (CRYPTOPP_GCC_VERSION >= 40300)) 77 #define CRYPTOPP_SECTION_INIT __attribute__((section ("nocommon"))) 78 #elif defined(__ELF__) && (defined(__xlC__) || defined(__ibmxl__)) 79 #define CRYPTOPP_SECTION_INIT __attribute__((section ("nocommon"))) 81 #define CRYPTOPP_SECTION_INIT 92 #if defined(__APPLE__) 93 #define CRYPTOPP_NO_CPU_FEATURE_PROBES 1 97 #if defined(_MSC_VER) || defined(__BORLANDC__) 98 #define CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY 1 100 #define CRYPTOPP_GNU_STYLE_INLINE_ASSEMBLY 1 Library configuration file.