diff options
author | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-08-31 20:24:04 +0100 |
---|---|---|
committer | M Joonas Pihlaja <jpihlaja@cc.helsinki.fi> | 2009-09-03 22:51:14 +0300 |
commit | e30c0037d44bf76a26182080be24c7037d7be5b5 (patch) | |
tree | e712884531018dbad6e1e0f969101a2822dafe55 | |
parent | 698b686d58c510e1b8a9183750d00cbd9ed504b2 (diff) |
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.
-rw-r--r-- | pixman/pixman-sse2.c | 4 |
1 files 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 */ |