forked from enlightenment/efl
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
This commit is contained in:
parent
c77812d8b0
commit
f7fb534562
|
@ -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) \
|
||||
|
|
Loading…
Reference in New Issue