diff options
author | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-04 18:41:13 +1000 |
commit | dd7595a3475407a7fa96a97393bae8c5220e8762 (patch) | |
tree | e341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c | |
parent | Add the skeleton. (diff) | |
download | SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2 SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz |
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to 'libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c new file mode 100644 index 0000000..95f43f6 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_i386.c | |||
@@ -0,0 +1,66 @@ | |||
1 | /* mul color --> dst */ | ||
2 | |||
3 | #ifdef BUILD_MMX | ||
4 | static void | ||
5 | _op_mul_c_dp_mmx(DATA32 *s __UNUSED__, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | pxor_r2r(mm0, mm0); | ||
8 | MOV_A2R(ALPHA_255, mm5) | ||
9 | MOV_P2R(c, mm2, mm0) | ||
10 | for (; d < e; d++) { | ||
11 | MOV_P2R(*d, mm1, mm0) | ||
12 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
13 | MOV_R2P(mm1, *d, mm0) | ||
14 | } | ||
15 | } | ||
16 | |||
17 | #define _op_mul_can_dp_mmx _op_mul_c_dp_mmx | ||
18 | #define _op_mul_caa_dp_mmx _op_mul_c_dp_mmx | ||
19 | |||
20 | #define _op_mul_c_dpan_mmx _op_mul_c_dp_mmx | ||
21 | #define _op_mul_can_dpan_mmx _op_mul_can_dp_mmx | ||
22 | #define _op_mul_caa_dpan_mmx _op_mul_caa_dp_mmx | ||
23 | |||
24 | static void | ||
25 | init_mul_color_span_funcs_mmx(void) | ||
26 | { | ||
27 | op_mul_span_funcs[SP_N][SM_N][SC][DP][CPU_MMX] = _op_mul_c_dp_mmx; | ||
28 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_can_dp_mmx; | ||
29 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_caa_dp_mmx; | ||
30 | |||
31 | op_mul_span_funcs[SP_N][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_c_dpan_mmx; | ||
32 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_can_dpan_mmx; | ||
33 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_caa_dpan_mmx; | ||
34 | } | ||
35 | #endif | ||
36 | |||
37 | #ifdef BUILD_MMX | ||
38 | static void | ||
39 | _op_mul_pt_c_dp_mmx(DATA32 s __UNUSED__, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
40 | pxor_r2r(mm0, mm0); | ||
41 | MOV_A2R(ALPHA_255, mm5) | ||
42 | MOV_P2R(c, mm2, mm0) | ||
43 | MOV_P2R(*d, mm1, mm0) | ||
44 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
45 | MOV_R2P(mm1, *d, mm0) | ||
46 | } | ||
47 | |||
48 | #define _op_mul_pt_caa_dp_mmx _op_mul_pt_c_dp_mmx | ||
49 | #define _op_mul_pt_can_dp_mmx _op_mul_pt_c_dp_mmx | ||
50 | |||
51 | #define _op_mul_pt_c_dpan_mmx _op_mul_pt_c_dp_mmx | ||
52 | #define _op_mul_pt_can_dpan_mmx _op_mul_pt_can_dp_mmx | ||
53 | #define _op_mul_pt_caa_dpan_mmx _op_mul_pt_caa_dp_mmx | ||
54 | |||
55 | static void | ||
56 | init_mul_color_pt_funcs_mmx(void) | ||
57 | { | ||
58 | op_mul_pt_funcs[SP_N][SM_N][SC][DP][CPU_MMX] = _op_mul_pt_c_dp_mmx; | ||
59 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pt_can_dp_mmx; | ||
60 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pt_caa_dp_mmx; | ||
61 | |||
62 | op_mul_pt_funcs[SP_N][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pt_c_dpan_mmx; | ||
63 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pt_can_dpan_mmx; | ||
64 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pt_caa_dpan_mmx; | ||
65 | } | ||
66 | #endif | ||