MagickCore
6.9.10
Convert, Edit, Or Compose Bitmap Images
|
Go to the documentation of this file.
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 (16*sizeof(void *))
30 # define CACHE_LINE_SIZE (8*sizeof(void *))
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)
#define MagickExport
Definition: method-attribute.h:80
MagickExport MagickBooleanType HeapOverflowSanityCheck(const size_t, const size_t) magick_alloc_sizes(1
#define magick_alloc_sizes(x, y)
Definition: method-attribute.h:114
MagickExport void * AcquireMagickMemory(const size_t size)
Definition: memory.c:473
MagickBooleanType
Definition: magick-type.h:191
#define ThrowFatalException(severity, tag)
Definition: exception-private.h:42
static void * AcquireCriticalMemory(const size_t size)
Definition: memory-private.h:52
MagickExport MagickBooleanType MagickExport size_t GetMaxMemoryRequest(void)
Definition: memory.c:927
@ ResourceLimitFatalError
Definition: exception.h:78