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
79 #if (defined(DEBUG) || defined(_DEBUG)) || (defined(NDK_DEBUG) && (NDK_DEBUG > 0))
80 # undef CRYPTOPP_DEBUG
81 # define CRYPTOPP_DEBUG 1
86 #if !defined(GZIP_OS_CODE)
87 # if defined(__macintosh__)
88 # define GZIP_OS_CODE 7
89 # elif defined(__unix__) || defined(__linux__)
90 # define GZIP_OS_CODE 3
92 # define GZIP_OS_CODE 0
121 #if (CRYPTOPP_GCC_VERSION >= 40600) || (CRYPTOPP_LLVM_CLANG_VERSION >= 10700) || \
122 (CRYPTOPP_APPLE_CLANG_VERSION >= 20000)
123 #define CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE 1
128 #ifndef CRYPTOPP_UNUSED
129 #define CRYPTOPP_UNUSED(x) ((void)(x))
133 #if defined(CRYPTOPP_MSC_VERSION)
134 # define CRYPTOPP_NOINLINE_DOTDOTDOT
135 # define CRYPTOPP_NOINLINE __declspec(noinline)
136 #elif defined(__xlc__) || defined(__xlC__) || defined(__ibmxl__)
137 # define CRYPTOPP_NOINLINE_DOTDOTDOT ...
138 # define CRYPTOPP_NOINLINE __attribute__((noinline))
139 #elif defined(__GNUC__)
140 # define CRYPTOPP_NOINLINE_DOTDOTDOT
141 # define CRYPTOPP_NOINLINE __attribute__((noinline))
143 # define CRYPTOPP_NOINLINE_DOTDOTDOT ...
144 # define CRYPTOPP_NOINLINE
149 #if defined(CRYPTOPP_CXX11_CONSTEXPR)
150 # define CRYPTOPP_STATIC_CONSTEXPR static constexpr
151 # define CRYPTOPP_STATIC_CONST_OR_CONSTEXPR static constexpr
152 # define CRYPTOPP_CONST_OR_CONSTEXPR constexpr
153 # define CRYPTOPP_CONSTEXPR constexpr
155 # define CRYPTOPP_STATIC_CONSTEXPR static
156 # define CRYPTOPP_STATIC_CONST_OR_CONSTEXPR static const
157 # define CRYPTOPP_CONST_OR_CONSTEXPR const
158 # define CRYPTOPP_CONSTEXPR
161 #if defined(CRYPTOPP_DOXYGEN_PROCESSING)
162 # define CRYPTOPP_CONSTANT(x) static const int x
163 #elif defined(CRYPTOPP_CXX11_STRONG_ENUM)
164 # define CRYPTOPP_CONSTANT(x) enum : int { x }
165 #elif defined(CRYPTOPP_CXX11_CONSTEXPR)
166 # define CRYPTOPP_CONSTANT(x) constexpr static int x
168 # define CRYPTOPP_CONSTANT(x) static const int x
172 #ifdef CRYPTOPP_MSC_VERSION
177 # pragma warning(disable: 4127 4512 4661 4910)
179 # if CRYPTOPP_MSC_VERSION >= 1920
181 # pragma warning(disable: 5054)
185 # pragma warning(once: 4191 4242 4263 4264 4266 4302 4826 4905 4906 4928)
194 #if CRYPTOPP_GCC_DIAGNOSTIC_AVAILABLE
195 # pragma GCC diagnostic ignored "-Wunknown-pragmas"
196 # pragma GCC diagnostic ignored "-Wunused-function"
Library configuration file.
Library configuration file.
Library configuration file.
Library configuration file.