22#ifndef CRYPTOPP_CONFIG_ALIGN_H
23#define CRYPTOPP_CONFIG_ALIGN_H
33#if defined(CRYPTOPP_DISABLE_ASM)
34 #define CRYPTOPP_BOOL_ALIGN16 0
35#elif (CRYPTOPP_BOOL_X86 || CRYPTOPP_BOOL_X32 || CRYPTOPP_BOOL_X64 || \
36 CRYPTOPP_BOOL_PPC32 || CRYPTOPP_BOOL_PPC64)
37 #define CRYPTOPP_BOOL_ALIGN16 1
39 #define CRYPTOPP_BOOL_ALIGN16 0
45 #define CRYPTOPP_MM_MALLOC_AVAILABLE
46#elif defined(__linux__) || defined(__sun__) || defined(__CYGWIN__)
47 #define CRYPTOPP_MEMALIGN_AVAILABLE
48#elif defined(__APPLE__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
49 #define CRYPTOPP_MALLOC_ALIGNMENT_IS_16
50#elif (defined(_GNU_SOURCE) || ((_XOPEN_SOURCE + 0) >= 600)) && (_POSIX_ADVISORY_INFO > 0)
51 #define CRYPTOPP_POSIX_MEMALIGN_AVAILABLE
53 #define CRYPTOPP_NO_ALIGNED_ALLOC
60#if defined(CRYPTOPP_CXX11_ALIGNAS)
61 #define CRYPTOPP_ALIGN_DATA(x) alignas(x)
62#elif defined(_MSC_VER)
63 #define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x))
64#elif defined(__GNUC__) || defined(__clang__) || (__SUNPRO_CC >= 0x5100)
65 #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
66#elif defined(__xlc__) || defined(__xlC__)
67 #define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
69 #define CRYPTOPP_ALIGN_DATA(x)
Library configuration file.
Library configuration file.
Library configuration file.
Library configuration file.