aboutsummaryrefslogtreecommitdiffstats
path: root/android
diff options
context:
space:
mode:
Diffstat (limited to 'android')
-rw-r--r--android/skin/argb.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/android/skin/argb.h b/android/skin/argb.h
index d71a914..ce0f1f5 100644
--- a/android/skin/argb.h
+++ b/android/skin/argb.h
@@ -118,6 +118,7 @@ mmx_interp255( mmx_t m1, mmx_t m2, mmx_t zero, int alpha )
#define ARGB_MULSHIFT(x1,x2,v,s) \
x1 = mmx_mulshift(x2, v, s, _zero)
+#define ARGB_BEGIN _mm_empty()
#define ARGB_DONE _mm_empty()
#define ARGB_RESCALE_SHIFT 10
@@ -200,6 +201,7 @@ typedef uint32_t argb_t;
x1##_rb = (x2##_rb >> _s) & 0xff00ff; \
})
+#define ARGB_BEGIN ((void)0)
#define ARGB_DONE ((void)0)
#define ARGB_RESCALE_SHIFT 8
@@ -231,7 +233,7 @@ ARGB_SCALE_GENERIC( ScaleOp* op )
int ix = op->ix;
int iy = op->iy;
- _mm_empty();
+ ARGB_BEGIN;
src_line += (sx >> 16)*4 + (sy >> 16)*src_pitch;
sx &= 0xffff;
@@ -327,7 +329,7 @@ scale_05_to_10( ScaleOp* op )
int ix = op->ix;
int iy = op->iy;
- _mm_empty();
+ ARGB_BEGIN;
src_line += (sx >> 16)*4 + (sy >> 16)*src_pitch;
sx &= 0xffff;
@@ -466,7 +468,7 @@ scale_up_bilinear( ScaleOp* op )
int xlimit, ylimit;
int h, sx0;
- _mm_empty();
+ ARGB_BEGIN;
/* the center pixel is at (sx+ix/2, sy+iy/2), we then want to get */
/* the four nearest source pixels, which are at (0.5,0.5) offsets */
@@ -553,7 +555,7 @@ ARGB_SCALE_UP_QUICK_4x4( ScaleOp* op )
int xlimit, ylimit;
int h, sx0;
- _mm_empty();
+ ARGB_BEGIN;
/* the center pixel is at (sx+ix/2, sy+iy/2), we then want to get */
/* the four nearest source pixels, which are at (0.5,0.5) offsets */
@@ -807,7 +809,7 @@ ARGB_SCALE_NEAREST( ScaleOp* op )
int xlimit, ylimit;
int h, sx0;
- _mm_empty();
+ ARGB_BEGIN;
/* the center pixel is at (sx+ix/2, sy+iy/2), we then want to get */
/* the four nearest source pixels, which are at (0.5,0.5) offsets */