diff options
Diffstat (limited to 'libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c | 72 |
1 files changed, 0 insertions, 72 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c deleted file mode 100644 index 7a6e403..0000000 --- a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c +++ /dev/null | |||
@@ -1,72 +0,0 @@ | |||
1 | /* mul mask x color -> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_mas_c_dp(DATA32 *s __UNUSED__, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l, nc = ~c; | ||
7 | while (d < e) | ||
8 | { | ||
9 | DATA32 a = *m; | ||
10 | switch(a) | ||
11 | { | ||
12 | case 0: | ||
13 | break; | ||
14 | case 255: | ||
15 | *d = MUL4_SYM(c, *d); | ||
16 | break; | ||
17 | default: | ||
18 | a = ~MUL_SYM(a, nc); | ||
19 | *d = MUL4_SYM(a, *d); | ||
20 | break; | ||
21 | } | ||
22 | m++; d++; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | #define _op_mul_mas_can_dp _op_mul_mas_c_dp | ||
27 | #define _op_mul_mas_caa_dp _op_mul_mas_c_dp | ||
28 | |||
29 | #define _op_mul_mas_c_dpan _op_mul_mas_c_dp | ||
30 | #define _op_mul_mas_can_dpan _op_mul_mas_can_dp | ||
31 | #define _op_mul_mas_caa_dpan _op_mul_mas_caa_dp | ||
32 | |||
33 | static void | ||
34 | init_mul_mask_color_span_funcs_c(void) | ||
35 | { | ||
36 | op_mul_span_funcs[SP_N][SM_AS][SC][DP][CPU_C] = _op_mul_mas_c_dp; | ||
37 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP][CPU_C] = _op_mul_mas_can_dp; | ||
38 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP][CPU_C] = _op_mul_mas_caa_dp; | ||
39 | |||
40 | op_mul_span_funcs[SP_N][SM_AS][SC][DP_AN][CPU_C] = _op_mul_mas_c_dpan; | ||
41 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_C] = _op_mul_mas_can_dpan; | ||
42 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_C] = _op_mul_mas_caa_dpan; | ||
43 | } | ||
44 | #endif | ||
45 | |||
46 | #ifdef BUILD_C | ||
47 | static void | ||
48 | _op_mul_pt_mas_c_dp(DATA32 s __UNUSED__, DATA8 m, DATA32 c, DATA32 *d) { | ||
49 | c = ~c; | ||
50 | c = ~MUL_SYM(m, c); | ||
51 | *d = MUL4_SYM(c, *d); | ||
52 | } | ||
53 | |||
54 | #define _op_mul_pt_mas_can_dp _op_mul_pt_mas_c_dp | ||
55 | #define _op_mul_pt_mas_caa_dp _op_mul_pt_mas_c_dp | ||
56 | |||
57 | #define _op_mul_pt_mas_c_dpan _op_mul_pt_mas_c_dp | ||
58 | #define _op_mul_pt_mas_can_dpan _op_mul_pt_mas_can_dp | ||
59 | #define _op_mul_pt_mas_caa_dpan _op_mul_pt_mas_caa_dp | ||
60 | |||
61 | static void | ||
62 | init_mul_mask_color_pt_funcs_c(void) | ||
63 | { | ||
64 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP][CPU_C] = _op_mul_pt_mas_c_dp; | ||
65 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP][CPU_C] = _op_mul_pt_mas_can_dp; | ||
66 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP][CPU_C] = _op_mul_pt_mas_caa_dp; | ||
67 | |||
68 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP_AN][CPU_C] = _op_mul_pt_mas_c_dpan; | ||
69 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_C] = _op_mul_pt_mas_can_dpan; | ||
70 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_C] = _op_mul_pt_mas_caa_dpan; | ||
71 | } | ||
72 | #endif | ||