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)
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)
44 #if defined(__cplusplus) || defined(c_plusplus)