forked from enlightenment/efl
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:
parent
acbcc7da6a
commit
64e153ea7f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue