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_mask_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_mask_i386.c')
-rw-r--r-- | libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_i386.c | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_i386.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_i386.c new file mode 100644 index 0000000..ebbac01 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_i386.c | |||
@@ -0,0 +1,63 @@ | |||
1 | /* mul pixel x mask --> dst */ | ||
2 | |||
3 | #ifdef BUILD_MMX | ||
4 | static void | ||
5 | _op_mul_p_mas_dp_mmx(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | MOV_A2R(ALPHA_255, mm5) | ||
8 | pxor_r2r(mm0, mm0); | ||
9 | while (d < e) { | ||
10 | c = *m; | ||
11 | switch(c) | ||
12 | { | ||
13 | case 0: | ||
14 | break; | ||
15 | case 255: | ||
16 | MOV_P2R(*d, mm1, mm0) | ||
17 | MOV_P2R(*s, mm2, mm0) | ||
18 | MUL4_SYM_R2R(mm2, mm1, mm5) | ||
19 | MOV_R2P(mm1, *d, mm0) | ||
20 | break; | ||
21 | default: | ||
22 | c++; | ||
23 | MOV_A2R(c, mm1) | ||
24 | c = ~(*s); | ||
25 | MOV_P2R(c, mm3, mm0) | ||
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 | s++; m++; d++; | ||
35 | } | ||
36 | } | ||
37 | |||
38 | #define _op_mul_pas_mas_dp_mmx _op_mul_p_mas_dp_mmx | ||
39 | #define _op_mul_pan_mas_dp_mmx _op_mul_p_mas_dp_mmx | ||
40 | |||
41 | #define _op_mul_p_mas_dpan_mmx _op_mul_p_mas_dp_mmx | ||
42 | #define _op_mul_pas_mas_dpan_mmx _op_mul_pas_mas_dp_mmx | ||
43 | #define _op_mul_pan_mas_dpan_mmx _op_mul_pan_mas_dp_mmx | ||
44 | |||
45 | static void | ||
46 | init_mul_pixel_mask_span_funcs_mmx(void) | ||
47 | { | ||
48 | op_mul_span_funcs[SP][SM_AS][SC_N][DP][CPU_MMX] = _op_mul_p_mas_dp_mmx; | ||
49 | op_mul_span_funcs[SP_AS][SM_AS][SC_N][DP][CPU_MMX] = _op_mul_pas_mas_dp_mmx; | ||
50 | op_mul_span_funcs[SP_AN][SM_AS][SC_N][DP][CPU_MMX] = _op_mul_pan_mas_dp_mmx; | ||
51 | |||
52 | op_mul_span_funcs[SP][SM_AS][SC_N][DP_AN][CPU_MMX] = _op_mul_p_mas_dpan_mmx; | ||
53 | op_mul_span_funcs[SP_AS][SM_AS][SC_N][DP_AN][CPU_MMX] = _op_mul_pas_mas_dpan_mmx; | ||
54 | op_mul_span_funcs[SP_AN][SM_AS][SC_N][DP_AN][CPU_MMX] = _op_mul_pan_mas_dpan_mmx; | ||
55 | } | ||
56 | #endif | ||
57 | |||
58 | #ifdef BUILD_MMX | ||
59 | static void | ||
60 | init_mul_pixel_mask_pt_funcs_mmx(void) | ||
61 | { | ||
62 | } | ||
63 | #endif | ||