18 #ifndef MAGICKCORE_MEMORY_PRIVATE_H
19 #define MAGICKCORE_MEMORY_PRIVATE_H
23 #if defined(__cplusplus) || defined(c_plusplus)
27 #if defined(__powerpc__)
28 # define CACHE_LINE_SIZE (16 * MAGICKCORE_SIZEOF_VOID_P)
30 # define CACHE_LINE_SIZE (8 * MAGICKCORE_SIZEOF_VOID_P)
33 #define CACHE_ALIGNED(n) MAGICKCORE_ALIGN_UP(n,CACHE_LINE_SIZE)
35 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
37 #define MagickAssumeAligned(address) \
38 __builtin_assume_aligned((address),CACHE_LINE_SIZE)
40 #define MagickAssumeAligned(address) (address)
43 #define MagickAssumeAligned(address) (address)
50 #if defined(__cplusplus) || defined(c_plusplus)
55 const size_t increment)
57 if (size > (SIZE_MAX-increment))
MagickBooleanType
Definition: magick-type.h:203
@ MagickFalse
Definition: magick-type.h:204
@ MagickTrue
Definition: magick-type.h:205
MagickPrivate void ResetVirtualAnonymousMemory(void)
Definition: memory.c:1346
static MagickBooleanType HeapOverflowCheckAdd(const size_t size, const size_t increment)
Definition: memory-private.h:54
MagickPrivate void ResetMaxMemoryRequest(void)
#define MagickPrivate
Definition: method-attribute.h:81