18 #ifndef MAGICKCORE_MEMORY_PRIVATE_H 19 #define MAGICKCORE_MEMORY_PRIVATE_H 24 #if defined(__cplusplus) || defined(c_plusplus) 30 #if defined(__powerpc__) 31 # define CACHE_LINE_SIZE (16*sizeof(void *)) 33 # define CACHE_LINE_SIZE (8*sizeof(void *)) 36 #define CacheAlign(size) ((size) < CACHE_LINE_SIZE ? CACHE_LINE_SIZE : (size)) 38 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6)) 40 #define MagickAssumeAligned(address) \ 41 __builtin_assume_aligned((address),CACHE_LINE_SIZE) 43 #define MagickAssumeAligned(address) (address) 46 #define MagickAssumeAligned(address) (address) 49 #ifndef HeapOverflowSanityCheckDefined 52 #define HeapOverflowSanityCheckDefined 67 if (memory == (
void *) NULL)
73 const size_t increment)
75 if (size > (SIZE_MAX-increment))
83 #if defined(__cplusplus) || defined(c_plusplus)
#define ThrowFatalException(severity, tag)
Definition: exception-private.h:42
static void * AcquireCriticalMemory(const size_t size)
Definition: memory-private.h:58
Definition: exception.h:78
MagickBooleanType
Definition: magick-type.h:191
static MagickBooleanType HeapOverflowCheckAdd(const size_t size, const size_t increment)
Definition: memory-private.h:72
Definition: magick-type.h:194
Definition: magick-type.h:193
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:476
MagickExport MagickBooleanType HeapOverflowSanityCheck(const size_t, const size_t) magick_alloc_sizes(1
MagickExport size_t GetMaxMemoryRequest(void)
Definition: memory.c:918
#define MagickExport
Definition: method-attribute.h:80
#define magick_alloc_sizes(x, y)
Definition: method-attribute.h:114