18 #ifndef _MAGICKCORE_MEMORY_PRIVATE_H
19 #define _MAGICKCORE_MEMORY_PRIVATE_H
21 #if defined(__cplusplus) || defined(c_plusplus)
25 #if defined(MAGICK_TARGET_CPU) && (MAGICK_TARGET_CPU == powerpc)
26 # define CACHE_LINE_SIZE 128
28 # define CACHE_LINE_SIZE 64
31 #define CacheAlign(size) ((size) < CACHE_LINE_SIZE ? CACHE_LINE_SIZE : (size))
33 #if (__GNUC__ > 4) || ((__GNUC__ == 4) && (__GNUC_MINOR__ > 6))
35 #define MagickAssumeAligned(address) \
36 __builtin_assume_aligned((address),CACHE_LINE_SIZE)
38 #define MagickAssumeAligned(address) (address)
41 #define MagickAssumeAligned(address) (address)
47 #if defined(__cplusplus) || defined(c_plusplus)
MagickBooleanType
Definition: magick-type.h:211
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:133