From 31ac784f3427a189e34ef6fdc937441b613407b9 Mon Sep 17 00:00:00 2001 From: Andrea Canciani Date: Thu, 26 Sep 2013 09:16:41 +0200 Subject: Fix build on MSVC After a4c79d695d52c94647b1aff78548e5892d616b70 the MMX and SSE2 code has some declarations after the beginning of a block, which is not allowed by MSVC. Fixes multiple errors like: pixman-mmx.c(3625) : error C2275: '__m64' : illegal use of this type as an expression pixman-sse2.c(5708) : error C2275: '__m128i' : illegal use of this type as an expression --- pixman/pixman-mmx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pixman/pixman-mmx.c') diff --git a/pixman/pixman-mmx.c b/pixman/pixman-mmx.c index a0f59ef..f9a92ce 100644 --- a/pixman/pixman-mmx.c +++ b/pixman/pixman-mmx.c @@ -3579,7 +3579,6 @@ do { \ __m64 b_lo = _mm_mullo_pi16 (_mm_unpacklo_pi8 (b, mm_zero), mm_wb); \ __m64 hi = _mm_add_pi16 (t_hi, b_hi); \ __m64 lo = _mm_add_pi16 (t_lo, b_lo); \ - vx += unit_x; \ /* calculate horizontal weights */ \ __m64 mm_wh = _mm_add_pi16 (mm_addc7, _mm_xor_si64 (mm_xorc7, \ _mm_srli_pi16 (mm_x, \ @@ -3587,6 +3586,7 @@ do { \ /* horizontal interpolation */ \ __m64 p = _mm_unpacklo_pi16 (lo, hi); \ __m64 q = _mm_unpackhi_pi16 (lo, hi); \ + vx += unit_x; \ lo = _mm_madd_pi16 (p, mm_wh); \ hi = _mm_madd_pi16 (q, mm_wh); \ mm_x = _mm_add_pi16 (mm_x, mm_ux); \ -- cgit v1.2.3