summaryrefslogtreecommitdiff
path: root/src/lib/evas/common/evas_op_blend
diff options
context:
space:
mode:
authorAlbin Tonnerre <albin.tonnerre@gmail.com>2014-02-09 19:44:49 +0900
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2014-02-09 19:44:49 +0900
commit64e153ea7fffa269dcc4566aeb6e17f2b24580ea (patch)
tree37665fddeb070ec8a2a44c4ad51f643e05041db0 /src/lib/evas/common/evas_op_blend
parentacbcc7da6a0297323adc3b1bc6d63c8b1009373d (diff)
cleanup - Remove the extra copy of the code and use a define instead
_op_blend_pan_mas_dp is just a duplication of the code in _op_blend_pas_mas_dp. Remove the extra copy of the code and use a define instead; this is what the SSE3 code already does.
Diffstat (limited to 'src/lib/evas/common/evas_op_blend')
-rw-r--r--src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c b/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c
index 5d6c976860..78ff716c21 100644
--- a/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c
+++ b/src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c
@@ -48,29 +48,7 @@ _op_blend_pas_mas_dp(DATA32 *s, DATA8 *m, DATA32 c EINA_UNUSED, DATA32 *d, int l
48 }); 48 });
49} 49}
50 50
51static void 51#define _op_blend_pan_mas_dp _op_blend_pas_mas_dp
52_op_blend_pan_mas_dp(DATA32 *s, DATA8 *m, DATA32 c EINA_UNUSED, DATA32 *d, int l) {
53 DATA32 *e;
54 int alpha;
55 UNROLL8_PLD_WHILE(d, l, e,
56 {
57 alpha = *m;
58 switch(alpha)
59 {
60 case 0:
61 break;
62 case 255:
63 *d = *s;
64 break;
65 default:
66 alpha++;
67 *d = INTERP_256(alpha, *s, *d);
68 break;
69 }
70 m++; s++; d++;
71 });
72}
73
74 52
75#define _op_blend_p_mas_dpan _op_blend_p_mas_dp 53#define _op_blend_p_mas_dpan _op_blend_p_mas_dp
76#define _op_blend_pas_mas_dpan _op_blend_pas_mas_dp 54#define _op_blend_pas_mas_dpan _op_blend_pas_mas_dp