aboutsummaryrefslogtreecommitdiff
path: root/pixman
diff options
context:
space:
mode:
authormarha <marha@users.sourceforge.net>2012-01-23 14:51:48 +0100
committermarha <marha@users.sourceforge.net>2012-01-23 14:51:48 +0100
commit27784896353d83f6228df93ff9ee28c1851f6a8f (patch)
tree998cf0c35e09cbb2e2f9722d993f53a0dc64e4fa /pixman
parent7ae340330598febff503833630f0bcf198987d55 (diff)
downloadvcxsrv-27784896353d83f6228df93ff9ee28c1851f6a8f.tar.gz
vcxsrv-27784896353d83f6228df93ff9ee28c1851f6a8f.tar.bz2
vcxsrv-27784896353d83f6228df93ff9ee28c1851f6a8f.zip
Avoid run-time type cast exceptions in debug
Diffstat (limited to 'pixman')
-rw-r--r--pixman/pixman/pixman-sse2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pixman/pixman/pixman-sse2.c b/pixman/pixman/pixman-sse2.c
index 107aa3ff3..c949261a6 100644
--- a/pixman/pixman/pixman-sse2.c
+++ b/pixman/pixman/pixman-sse2.c
@@ -5292,10 +5292,10 @@ FAST_NEAREST_MAINLOOP_COMMON (sse2_8888_n_8888_none_OVER,
const __m128i xmm_wb = _mm_set_epi16 (wb, wb, wb, wb, wb, wb, wb, wb); \
const __m128i xmm_xorc = _mm_set_epi16 (0, 0, 0, 0, 0xff, 0xff, 0xff, 0xff);\
const __m128i xmm_addc = _mm_set_epi16 (0, 0, 0, 0, 1, 1, 1, 1); \
- const __m128i xmm_ux = _mm_set_epi16 (unit_x, unit_x, unit_x, unit_x, \
- unit_x, unit_x, unit_x, unit_x); \
+ const __m128i xmm_ux = _mm_set_epi16 (unit_x&0xffff, unit_x&0xffff, unit_x&0xffff, unit_x&0xffff, \
+ unit_x&0xffff, unit_x&0xffff, unit_x&0xffff, unit_x&0xffff); \
const __m128i xmm_zero = _mm_setzero_si128 (); \
- __m128i xmm_x = _mm_set_epi16 (vx, vx, vx, vx, vx, vx, vx, vx)
+ __m128i xmm_x = _mm_set_epi16 (vx&0xffff, vx&0xffff, vx&0xffff, vx&0xffff, vx&0xffff, vx&0xffff, vx&0xffff, vx&0xffff)
#define BILINEAR_INTERPOLATE_ONE_PIXEL(pix) \
do { \