18 #ifndef MAGICKCORE_MEMORY_PRIVATE_H 19 #define MAGICKCORE_MEMORY_PRIVATE_H 21 #if defined(__cplusplus) || defined(c_plusplus) 27 #if defined(__powerpc__) 28 # define CACHE_LINE_SIZE 128 30 # define CACHE_LINE_SIZE 64 33 #define CacheAlign(size) ((size) < CACHE_LINE_SIZE ? CACHE_LINE_SIZE : (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) 61 if (memory == (
void *) NULL)
66 #if defined(__cplusplus) || defined(c_plusplus) MagickExport MagickBooleanType MagickExport size_t GetMaxMemoryRequest(void)
Definition: memory.c:917
#define ThrowFatalException(severity, tag)
Definition: exception-private.h:36
static void * AcquireCriticalMemory(const size_t size)
Definition: memory-private.h:52
Definition: exception.h:78
MagickBooleanType
Definition: magick-type.h:189
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:463
MagickExport MagickBooleanType HeapOverflowSanityCheck(const size_t, const size_t) magick_alloc_sizes(1
#define MagickExport
Definition: method-attribute.h:98
#define magick_alloc_sizes(x, y)
Definition: method-attribute.h:132