From e30c0037d44bf76a26182080be24c7037d7be5b5 Mon Sep 17 00:00:00 2001 From: M Joonas Pihlaja Date: Mon, 31 Aug 2009 20:24:04 +0100 Subject: [PATCH] Work around differing _mm_prefetch() prototypes on Solaris. Sun Studio 12 expects the address to prefetch to be a const char pointer rather than a __m128i pointer or void pointer. --- pixman/pixman-sse2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pixman/pixman-sse2.c b/pixman/pixman-sse2.c index 727ad42..1d4f02b 100644 --- a/pixman/pixman-sse2.c +++ b/pixman/pixman-sse2.c @@ -359,13 +359,13 @@ in_over_2x128 (__m128i* src_lo, static force_inline void cache_prefetch (__m128i* addr) { - _mm_prefetch (addr, _MM_HINT_T0); + _mm_prefetch ((void const*)addr, _MM_HINT_T0); } static force_inline void cache_prefetch_next (__m128i* addr) { - _mm_prefetch (addr + 4, _MM_HINT_T0); /* 64 bytes ahead */ + _mm_prefetch ((void const *)(addr + 4), _MM_HINT_T0); /* 64 bytes ahead */ } /* load 4 pixels from a 16-byte boundary aligned address */ -- 2.7.4