devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f7fb534562254b887b19029e0380e6da076982cd

commit f7fb534562254b887b19029e0380e6da076982cd
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Apr 21 11:23:28 2015 -0400

    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 560236d..99b949e 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) \

-- 


Reply via email to