21 #ifndef CRYPTOPP_CONFIG_MISC_H 22 #define CRYPTOPP_CONFIG_MISC_H 31 #if !defined(CRYPTOPP_LITTLE_ENDIAN) && !defined(CRYPTOPP_BIG_ENDIAN) && (defined(__BIG_ENDIAN__) || (defined(__s390__) || defined(__s390x__) || defined(__zarch__)) || (defined(__m68k__) || defined(__MC68K__)) || defined(__sparc) || defined(__sparc__) || defined(__hppa__) || defined(__MIPSEB__) || defined(__ARMEB__) || (defined(__MWERKS__) && !defined(__INTEL__))) 32 # define CRYPTOPP_BIG_ENDIAN 1 37 #if !defined(CRYPTOPP_BIG_ENDIAN) && !defined(CRYPTOPP_LITTLE_ENDIAN) 38 # define CRYPTOPP_LITTLE_ENDIAN 1 46 #ifndef CRYPTOPP_DATA_DIR 47 # define CRYPTOPP_DATA_DIR "" 69 #define CRYPTOPP_SLOW_ARMV8_SHIFT 1 77 #if (defined(DEBUG) || defined(_DEBUG)) && !defined(CRYPTOPP_DEBUG) 78 # define CRYPTOPP_DEBUG 1 83 #if !defined(GZIP_OS_CODE) 84 # if defined(__macintosh__) 85 # define GZIP_OS_CODE 7 86 # elif defined(__unix__) || defined(__linux__) 87 # define GZIP_OS_CODE 3 89 # define GZIP_OS_CODE 0 118 #if (CRYPTOPP_GCC_VERSION >= 40600) || (CRYPTOPP_LLVM_CLANG_VERSION >= 10700) || \ 119 (CRYPTOPP_APPLE_CLANG_VERSION >= 20000) 120 #define CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE 1 125 #ifndef CRYPTOPP_UNUSED 126 #define CRYPTOPP_UNUSED(x) ((void)(x)) 130 #if defined(_MSC_VER) 131 # define CRYPTOPP_NOINLINE_DOTDOTDOT 132 # define CRYPTOPP_NOINLINE __declspec(noinline) 133 #elif defined(__xlc__) || defined(__xlC__) || defined(__ibmxl__) 134 # define CRYPTOPP_NOINLINE_DOTDOTDOT ... 135 # define CRYPTOPP_NOINLINE __attribute__((noinline)) 136 #elif defined(__GNUC__) 137 # define CRYPTOPP_NOINLINE_DOTDOTDOT 138 # define CRYPTOPP_NOINLINE __attribute__((noinline)) 140 # define CRYPTOPP_NOINLINE_DOTDOTDOT ... 141 # define CRYPTOPP_NOINLINE 145 #if defined(CRYPTOPP_CXX11_CONSTEXPR) 146 # define CRYPTOPP_STATIC_CONSTEXPR static constexpr 147 # define CRYPTOPP_CONSTEXPR constexpr 149 # define CRYPTOPP_STATIC_CONSTEXPR static 150 # define CRYPTOPP_CONSTEXPR 151 #endif // CRYPTOPP_CXX11_CONSTEXPR 153 #if defined(CRYPTOPP_DOXYGEN_PROCESSING) 154 # define CRYPTOPP_CONSTANT(x) static const int x 155 #elif defined(CRYPTOPP_CXX11_STRONG_ENUM) 156 # define CRYPTOPP_CONSTANT(x) enum : int { x } 157 #elif defined(CRYPTOPP_CXX11_CONSTEXPR) 158 # define CRYPTOPP_CONSTANT(x) constexpr static int x 160 # define CRYPTOPP_CONSTANT(x) static const int x 169 # pragma warning(disable: 4127 4512 4661 4910) 171 # if _MSC_VER >= 1920 173 # pragma warning(disable: 5054) 177 # pragma warning(once: 4191 4242 4263 4264 4266 4302 4826 4905 4906 4928) 186 #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE 187 # pragma GCC diagnostic ignored "-Wunknown-pragmas" 188 # pragma GCC diagnostic ignored "-Wunused-function" 191 #endif // CRYPTOPP_CONFIG_MISC_H Library configuration file.
Library configuration file.
Library configuration file.
Library configuration file.