cleanup - Remove the extra copy of the code and use a define instead
authorAlbin Tonnerre <albin.tonnerre@gmail.com>
Sun, 9 Feb 2014 10:44:49 +0000 (19:44 +0900)
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>
Sun, 9 Feb 2014 10:44:49 +0000 (19:44 +0900)
_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.

src/lib/evas/common/evas_op_blend/op_blend_pixel_mask_.c

index 5d6c976..78ff716 100644 (file)
@@ -48,29 +48,7 @@ _op_blend_pas_mas_dp(DATA32 *s, DATA8 *m, DATA32 c EINA_UNUSED, DATA32 *d, int l
                      });
 }
 
-static void
-_op_blend_pan_mas_dp(DATA32 *s, DATA8 *m, DATA32 c EINA_UNUSED, DATA32 *d, int l) {
-   DATA32 *e;
-   int alpha;
-   UNROLL8_PLD_WHILE(d, l, e,
-                     {
-                        alpha = *m;
-                        switch(alpha)
-                          {
-                          case 0:
-                             break;
-                          case 255:
-                             *d = *s;
-                             break;
-                          default:
-                             alpha++;
-                             *d = INTERP_256(alpha, *s, *d);
-                             break;
-                          }
-                        m++;  s++;  d++;
-                     });
-}
-
+#define _op_blend_pan_mas_dp _op_blend_pas_mas_dp
 
 #define _op_blend_p_mas_dpan _op_blend_p_mas_dp
 #define _op_blend_pas_mas_dpan _op_blend_pas_mas_dp