From ec2c4982b3532da79db2ce6893b133d48f35a082 Mon Sep 17 00:00:00 2001 From: cristy Date: Sun, 14 Feb 2010 23:13:41 +0000 Subject: [PATCH] --- magick/thread-private.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/magick/thread-private.h b/magick/thread-private.h index cf9a7794d..d3a5f6437 100644 --- a/magick/thread-private.h +++ b/magick/thread-private.h @@ -24,6 +24,13 @@ extern "C" { #include +#if (__GNUC__ > 3) || ((__GNUC__ == 3) && (__GNUC_MINOR > 10)) +#define MagickCachePrefetch(address,mode,locality) \ + __builtin_prefetch(address,mode,locality) +#else +#define MagickCachePrefetch(address,mode,locality) +#endif + #if defined(MAGICKCORE_HAVE_PTHREAD) typedef pthread_mutex_t MagickMutexType; #elif defined(__WINDOWS__) -- 2.40.0