From f7fb534562254b887b19029e0380e6da076982cd Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 21 Apr 2015 11:23:28 -0400 Subject: [PATCH] evas-blend-ops: fix off-by-1 in the C MUL3_SYM "simd" multiplier Summary: op_blend functions give off-by-1 using NEON intrinsics in C MUL3_SYM, this commit fixes that issue with no ill effects on other platforms. @fix Reviewers: raster, cedric Subscribers: cedric Projects: #efl Differential Revision: https://phab.enlightenment.org/D2394 --- src/lib/evas/include/evas_blend_ops.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/evas/include/evas_blend_ops.h b/src/lib/evas/include/evas_blend_ops.h index 560236d60b..99b949eb97 100644 --- a/src/lib/evas/include/evas_blend_ops.h +++ b/src/lib/evas/include/evas_blend_ops.h @@ -111,7 +111,7 @@ extern const DATA32 ALPHA_256; #define MUL3_SYM(x, y) \ ( ((((((x) >> 8) & 0xff00) * (((y) >> 16) & 0xff)) + 0xff00) & 0xff0000) + \ - ((((((x) & 0xff00) * ((y) & 0xff00)) + 0xff00) >> 16) & 0xff00) + \ + ((((((x) & 0xff00) * ((y) & 0xff00)) + 0xff0000) >> 16) & 0xff00) + \ (((((x) & 0xff) * ((y) & 0xff)) + 0xff) >> 8) ) #define MUL_SYM(a, x) \ -- 2.34.1