From 02268903e4311709744c11e495f9b17f171ec5e9 Mon Sep 17 00:00:00 2001 From: David Sharp Date: Thu, 19 Jun 2008 20:23:33 -0700 Subject: [PATCH] pixman-sse.c: silence pointer-cast compiler warnings. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Cast pointers to words of the same size, not 32-bits. Signed-off-by: Søren Sandmann Pedersen --- pixman/pixman-sse.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/pixman/pixman-sse.c b/pixman/pixman-sse.c index 13bfe1c..6f7876c 100644 --- a/pixman/pixman-sse.c +++ b/pixman/pixman-sse.c @@ -643,7 +643,7 @@ coreCombineInUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { s = *ps++; d = *pd; @@ -700,7 +700,7 @@ coreCombineReverseInUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { s = *ps++; d = *pd; @@ -752,7 +752,7 @@ coreCombineReverseOutUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { uint32_t s = *ps++; uint32_t d = *pd; @@ -809,7 +809,7 @@ coreCombineOutUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { uint32_t s = *ps++; uint32_t d = *pd; @@ -885,7 +885,7 @@ coreCombineAtopUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { s = *ps++; d = *pd; @@ -962,7 +962,7 @@ coreCombineReverseAtopUsse2 (uint32_t* pd, const uint32_t* ps, int w) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { s = *ps++; d = *pd; @@ -1039,7 +1039,7 @@ coreCombineXorUsse2 (uint32_t* dst, const uint32_t* src, int width) cachePrefetch ((__m128i*)ps); cachePrefetch ((__m128i*)pd); - while (w && ((uint32_t) pd & 15)) + while (w && ((unsigned long) pd & 15)) { s = *ps++; d = *pd; -- 2.7.4