Switch to posix_memalign when available
It is easier to defer to the runtime for aligned allocations. We found the preprocessor macros needed to identitify the availability. Also see https://forum.kde.org/viewtopic.php?p=66274pull/580/merge
parent
22e783a378
commit
7141d026c1
2
config.h
2
config.h
|
|
@ -696,7 +696,7 @@ NAMESPACE_END
|
||||||
#define CRYPTOPP_MM_MALLOC_AVAILABLE
|
#define CRYPTOPP_MM_MALLOC_AVAILABLE
|
||||||
#elif defined(__APPLE__)
|
#elif defined(__APPLE__)
|
||||||
#define CRYPTOPP_APPLE_MALLOC_AVAILABLE
|
#define CRYPTOPP_APPLE_MALLOC_AVAILABLE
|
||||||
#elif defined(_GNU_SOURCE) || ((_XOPEN_SOURCE + 0) >= 600) || defined(_AIX)
|
#elif (defined(_GNU_SOURCE) || ((_XOPEN_SOURCE + 0) >= 600)) && (_POSIX_ADVISORY_INFO > 0)
|
||||||
#define CRYPTOPP_POSIX_MEMALIGN_AVAILABLE
|
#define CRYPTOPP_POSIX_MEMALIGN_AVAILABLE
|
||||||
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
#elif defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
|
||||||
#define CRYPTOPP_MALLOC_ALIGNMENT_IS_16
|
#define CRYPTOPP_MALLOC_ALIGNMENT_IS_16
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue