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.
This commit is contained in:
Albin Tonnerre 2014-02-09 19:44:49 +09:00 committed by Carsten Haitzler (Rasterman)
parent acbcc7da6a
commit 64e153ea7f
1 changed files with 1 additions and 23 deletions

View 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