diff options
Diffstat (limited to 'libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c deleted file mode 100644 index 1999503..0000000 --- a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c +++ /dev/null | |||
@@ -1,92 +0,0 @@ | |||
1 | /* mul mask x color -> dst */ | ||
2 | |||
3 | #ifdef BUILD_MMX | ||
4 | static void | ||
5 | _op_mul_mas_c_dp_mmx(DATA32 *s __UNUSED__, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | MOV_P2R(c, mm2, mm0) | ||
8 | c = ~c; | ||
9 | MOV_P2R(c, mm3, mm0) | ||
10 | MOV_A2R(ALPHA_255, mm5) | ||
11 | pxor_r2r(mm0, mm0); | ||
12 | while (d < e) { | ||
13 | DATA32 a = *m; | ||
14 | switch(a) | ||
15 | { | ||
16 | case 0: | ||
17 | break; | ||
18 | case 255: | ||
19 | MOV_P2R(*d, mm1, mm0) | ||
20 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
21 | MOV_R2P(mm1, *d, mm0) | ||
22 | break; | ||
23 | default: | ||
24 | a++; | ||
25 | MOV_A2R(a, mm1) | ||
26 | MUL4_256_R2R(mm3, mm1) | ||
27 | movq_r2r(mm5, mm4); | ||
28 | psubw_r2r(mm1, mm4); | ||
29 | MOV_P2R(*d, mm1, mm0) | ||
30 | MUL4_SYM_R2R(mm4, mm1, mm5) | ||
31 | MOV_R2P(mm1, *d, mm0) | ||
32 | break; | ||
33 | } | ||
34 | m++; d++; | ||
35 | } | ||
36 | } | ||
37 | |||
38 | #define _op_mul_mas_can_dp_mmx _op_mul_mas_c_dp_mmx | ||
39 | #define _op_mul_mas_caa_dp_mmx _op_mul_mas_c_dp_mmx | ||
40 | |||
41 | #define _op_mul_mas_c_dpan_mmx _op_mul_mas_c_dp_mmx | ||
42 | #define _op_mul_mas_can_dpan_mmx _op_mul_mas_can_dp_mmx | ||
43 | #define _op_mul_mas_caa_dpan_mmx _op_mul_mas_caa_dp_mmx | ||
44 | |||
45 | static void | ||
46 | init_mul_mask_color_span_funcs_mmx(void) | ||
47 | { | ||
48 | op_mul_span_funcs[SP_N][SM_AS][SC][DP][CPU_MMX] = _op_mul_mas_c_dp_mmx; | ||
49 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP][CPU_MMX] = _op_mul_mas_can_dp_mmx; | ||
50 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP][CPU_MMX] = _op_mul_mas_caa_dp_mmx; | ||
51 | |||
52 | op_mul_span_funcs[SP_N][SM_AS][SC][DP_AN][CPU_MMX] = _op_mul_mas_c_dpan_mmx; | ||
53 | op_mul_span_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_MMX] = _op_mul_mas_can_dpan_mmx; | ||
54 | op_mul_span_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_MMX] = _op_mul_mas_caa_dpan_mmx; | ||
55 | } | ||
56 | #endif | ||
57 | |||
58 | #ifdef BUILD_MMX | ||
59 | static void | ||
60 | _op_mul_pt_mas_c_dp_mmx(DATA32 s, DATA8 m, DATA32 c, DATA32 *d) { | ||
61 | s = m + 1; | ||
62 | c = ~c; | ||
63 | MOV_P2R(c, mm3, mm0) | ||
64 | MOV_A2R(ALPHA_255, mm4) | ||
65 | pxor_r2r(mm0, mm0); | ||
66 | MOV_A2R(s, mm1) | ||
67 | MUL4_256_R2R(mm3, mm1) | ||
68 | psubw_r2r(mm1, mm4); | ||
69 | MOV_P2R(*d, mm1, mm0) | ||
70 | MUL4_SYM_R2R(mm4, mm1, mm5) | ||
71 | MOV_R2P(mm1, *d, mm0) | ||
72 | } | ||
73 | |||
74 | #define _op_mul_pt_mas_can_dp_mmx _op_mul_pt_mas_c_dp_mmx | ||
75 | #define _op_mul_pt_mas_caa_dp_mmx _op_mul_pt_mas_c_dp_mmx | ||
76 | |||
77 | #define _op_mul_pt_mas_c_dpan_mmx _op_mul_pt_mas_c_dp_mmx | ||
78 | #define _op_mul_pt_mas_can_dpan_mmx _op_mul_pt_mas_can_dp_mmx | ||
79 | #define _op_mul_pt_mas_caa_dpan_mmx _op_mul_pt_mas_caa_dp_mmx | ||
80 | |||
81 | static void | ||
82 | init_mul_mask_color_pt_funcs_mmx(void) | ||
83 | { | ||
84 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP][CPU_MMX] = _op_mul_pt_mas_c_dp_mmx; | ||
85 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP][CPU_MMX] = _op_mul_pt_mas_can_dp_mmx; | ||
86 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP][CPU_MMX] = _op_mul_pt_mas_caa_dp_mmx; | ||
87 | |||
88 | op_mul_pt_funcs[SP_N][SM_AS][SC][DP_AN][CPU_MMX] = _op_mul_pt_mas_c_dpan_mmx; | ||
89 | op_mul_pt_funcs[SP_N][SM_AS][SC_AN][DP_AN][CPU_MMX] = _op_mul_pt_mas_can_dpan_mmx; | ||
90 | op_mul_pt_funcs[SP_N][SM_AS][SC_AA][DP_AN][CPU_MMX] = _op_mul_pt_mas_caa_dpan_mmx; | ||
91 | } | ||
92 | #endif | ||