#if defined(MAGICKCORE_HAVE___ALLOC_SIZE__)
# define magick_alloc_size(x) __attribute__((__alloc_size__(x)))
# define magick_alloc_sizes(x,y) __attribute__((__alloc_size__(x,y)))
-# define magick_cold __attribute__((__cold__))
-# define magick_hot __attribute__((__hot__))
+# define magick_cold_spot __attribute__((__cold__))
+# define magick_hot_spot __attribute__((__hot__))
#else
# define magick_alloc_size(x) /* nothing */
# define magick_alloc_sizes(x,y) /* nothing */
-# define magick_cold
-# define magick_hot
+# define magick_cold_spot
+# define magick_hot_spot
#endif
#if defined(MAGICKCORE_NAMESPACE_PREFIX)
extern MagickPrivate const Quantum
*GetVirtualPixelsFromNexus(const Image *,const VirtualPixelMethod,
const ssize_t,const ssize_t,const size_t,const size_t,NexusInfo *,
- ExceptionInfo *),
+ ExceptionInfo *) magick_hot_spot,
*GetVirtualPixelsNexus(const Cache,NexusInfo *);
extern MagickPrivate const void
extern MagickPrivate MagickBooleanType
CacheComponentGenesis(void),
- SyncAuthenticPixelCacheNexus(Image *,NexusInfo *,ExceptionInfo *),
+ SyncAuthenticPixelCacheNexus(Image *,NexusInfo *,ExceptionInfo *) magick_hot_spot,
SyncImagePixelCache(Image *,ExceptionInfo *);
extern MagickPrivate MagickSizeType
extern MagickPrivate Quantum
*GetAuthenticPixelCacheNexus(Image *,const ssize_t,const ssize_t,
- const size_t,const size_t,NexusInfo *,ExceptionInfo *),
+ const size_t,const size_t,NexusInfo *,ExceptionInfo *) magick_hot_spot,
*GetPixelCacheNexusPixels(const Cache,NexusInfo *),
*QueueAuthenticPixelCacheNexus(Image *,const ssize_t,const ssize_t,
const size_t,const size_t,const MagickBooleanType,NexusInfo *,
- ExceptionInfo *);
+ ExceptionInfo *) magick_hot_spot;
extern MagickPrivate size_t
GetPixelCacheChannels(const Cache);
extern MagickPrivate void
CacheComponentTerminus(void),
ClonePixelCacheMethods(Cache,const Cache),
- *GetPixelCacheNexusMetacontent(const Cache,NexusInfo *),
+ *GetPixelCacheNexusMetacontent(const Cache,NexusInfo *) magick_hot_spot,
*GetPixelCachePixels(Image *,MagickSizeType *,ExceptionInfo *),
GetPixelCacheTileSize(const Image *,size_t *,size_t *),
GetPixelCacheMethods(CacheMethods *),
extern MagickExport const Quantum
*GetCacheViewVirtualPixels(const CacheView *,const ssize_t,const ssize_t,
- const size_t,const size_t,ExceptionInfo *),
- *GetCacheViewVirtualPixelQueue(const CacheView *);
+ const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
+ *GetCacheViewVirtualPixelQueue(const CacheView *) magick_hot_spot;
extern MagickExport const void
*GetCacheViewVirtualMetacontent(const CacheView *);
Quantum *,ExceptionInfo *),
SetCacheViewStorageClass(CacheView *,const ClassType,ExceptionInfo *),
SetCacheViewVirtualPixelMethod(CacheView *,const VirtualPixelMethod),
- SyncCacheViewAuthenticPixels(CacheView *,ExceptionInfo *);
+ SyncCacheViewAuthenticPixels(CacheView *,ExceptionInfo *) magick_hot_spot;
extern MagickExport MagickSizeType
GetCacheViewExtent(const CacheView *);
extern MagickExport Quantum
- *GetCacheViewAuthenticPixelQueue(CacheView *),
+ *GetCacheViewAuthenticPixelQueue(CacheView *) magick_hot_spot,
*GetCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
- const size_t,const size_t,ExceptionInfo *),
+ const size_t,const size_t,ExceptionInfo *) magick_hot_spot,
*QueueCacheViewAuthenticPixels(CacheView *,const ssize_t,const ssize_t,
- const size_t,const size_t,ExceptionInfo *);
+ const size_t,const size_t,ExceptionInfo *) magick_hot_spot;
extern MagickExport void
*GetCacheViewAuthenticMetacontent(CacheView *);
extern "C" {
#endif
+static Cache
+ GetImagePixelCache(Image *,const MagickBooleanType,ExceptionInfo *)
+ magick_hot_spot;
+
static const Quantum
*GetVirtualPixelCache(const Image *,const VirtualPixelMethod,const ssize_t,
const ssize_t,const size_t,const size_t,ExceptionInfo *),
*QueueAuthenticPixelsCache(Image *,const ssize_t,const ssize_t,const size_t,
const size_t,ExceptionInfo *),
*SetPixelCacheNexusPixels(const Image *,const RectangleInfo *,NexusInfo *,
- ExceptionInfo *);
+ ExceptionInfo *) magick_hot_spot;
#if defined(__cplusplus) || defined(c_plusplus)
}