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_pixel_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_pixel_i386.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_i386.c | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_i386.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_i386.c new file mode 100644 index 0000000..0db6cd7 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_i386.c | |||
@@ -0,0 +1,66 @@ | |||
1 | /* mul pixel --> dst */ | ||
2 | |||
3 | #ifdef BUILD_MMX | ||
4 | static void | ||
5 | _op_mul_p_dp_mmx(DATA32 *s, DATA8 *m __UNUSED__, DATA32 c __UNUSED__, DATA32 *d, int l) { | ||
6 | DATA32 *e = s + l; | ||
7 | pxor_r2r(mm0, mm0); | ||
8 | MOV_A2R(ALPHA_255, mm5) | ||
9 | for (; s < e; s++, d++) { | ||
10 | MOV_P2R(*d, mm1, mm0) | ||
11 | MOV_P2R(*s, mm2, mm0) | ||
12 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
13 | MOV_R2P(mm1, *d, mm0) | ||
14 | } | ||
15 | } | ||
16 | |||
17 | #define _op_mul_pas_dp_mmx _op_mul_p_dp_mmx | ||
18 | #define _op_mul_pan_dp_mmx _op_mul_p_dp_mmx | ||
19 | |||
20 | #define _op_mul_p_dpan_mmx _op_mul_p_dp_mmx | ||
21 | #define _op_mul_pan_dpan_mmx _op_mul_pan_dp_mmx | ||
22 | #define _op_mul_pas_dpan_mmx _op_mul_pas_dp_mmx | ||
23 | |||
24 | static void | ||
25 | init_mul_pixel_span_funcs_mmx(void) | ||
26 | { | ||
27 | op_mul_span_funcs[SP][SM_N][SC_N][DP][CPU_MMX] = _op_mul_p_dp_mmx; | ||
28 | op_mul_span_funcs[SP_AN][SM_N][SC_N][DP][CPU_MMX] = _op_mul_pan_dp_mmx; | ||
29 | op_mul_span_funcs[SP_AS][SM_N][SC_N][DP][CPU_MMX] = _op_mul_pas_dp_mmx; | ||
30 | |||
31 | op_mul_span_funcs[SP][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_p_dpan_mmx; | ||
32 | op_mul_span_funcs[SP_AN][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_pan_dpan_mmx; | ||
33 | op_mul_span_funcs[SP_AS][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_pas_dpan_mmx; | ||
34 | } | ||
35 | #endif | ||
36 | |||
37 | #ifdef BUILD_MMX | ||
38 | static void | ||
39 | _op_mul_pt_p_dp_mmx(DATA32 s, DATA8 m __UNUSED__, DATA32 c __UNUSED__, DATA32 *d) { | ||
40 | pxor_r2r(mm0, mm0); | ||
41 | MOV_A2R(ALPHA_255, mm5) | ||
42 | MOV_P2R(*d, mm1, mm0) | ||
43 | MOV_P2R(s, mm2, mm0) | ||
44 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
45 | MOV_R2P(mm1, *d, mm0) | ||
46 | } | ||
47 | |||
48 | #define _op_mul_pt_pan_dp_mmx _op_mul_pt_p_dp_mmx | ||
49 | #define _op_mul_pt_pas_dp_mmx _op_mul_pt_p_dp_mmx | ||
50 | |||
51 | #define _op_mul_pt_p_dpan_mmx _op_mul_pt_p_dp_mmx | ||
52 | #define _op_mul_pt_pan_dpan_mmx _op_mul_pt_pan_dp_mmx | ||
53 | #define _op_mul_pt_pas_dpan_mmx _op_mul_pt_pas_dp_mmx | ||
54 | |||
55 | static void | ||
56 | init_mul_pixel_pt_funcs_mmx(void) | ||
57 | { | ||
58 | op_mul_pt_funcs[SP][SM_N][SC_N][DP][CPU_MMX] = _op_mul_pt_p_dp_mmx; | ||
59 | op_mul_pt_funcs[SP_AN][SM_N][SC_N][DP][CPU_MMX] = _op_mul_pt_pan_dp_mmx; | ||
60 | op_mul_pt_funcs[SP_AS][SM_N][SC_N][DP][CPU_MMX] = _op_mul_pt_pas_dp_mmx; | ||
61 | |||
62 | op_mul_pt_funcs[SP][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_pt_p_dpan_mmx; | ||
63 | op_mul_pt_funcs[SP_AN][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_pt_pan_dpan_mmx; | ||
64 | op_mul_pt_funcs[SP_AS][SM_N][SC_N][DP_AN][CPU_MMX] = _op_mul_pt_pas_dpan_mmx; | ||
65 | } | ||
66 | #endif | ||