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 | |
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 '')
13 files changed, 1703 insertions, 0 deletions
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.am b/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.am new file mode 100644 index 0000000..e3d0b82 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.am | |||
@@ -0,0 +1,13 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | EXTRA_DIST = \ | ||
4 | op_mul_color_.c \ | ||
5 | op_mul_color_i386.c \ | ||
6 | op_mul_mask_color_.c \ | ||
7 | op_mul_mask_color_i386.c \ | ||
8 | op_mul_pixel_.c \ | ||
9 | op_mul_pixel_color_.c \ | ||
10 | op_mul_pixel_color_i386.c \ | ||
11 | op_mul_pixel_i386.c \ | ||
12 | op_mul_pixel_mask_.c \ | ||
13 | op_mul_pixel_mask_i386.c | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.in b/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.in new file mode 100644 index 0000000..f239cf7 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/Makefile.in | |||
@@ -0,0 +1,543 @@ | |||
1 | # Makefile.in generated by automake 1.11.1 from Makefile.am. | ||
2 | # @configure_input@ | ||
3 | |||
4 | # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, | ||
5 | # 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, | ||
6 | # Inc. | ||
7 | # This Makefile.in is free software; the Free Software Foundation | ||
8 | # gives unlimited permission to copy and/or distribute it, | ||
9 | # with or without modifications, as long as this notice is preserved. | ||
10 | |||
11 | # This program is distributed in the hope that it will be useful, | ||
12 | # but WITHOUT ANY WARRANTY, to the extent permitted by law; without | ||
13 | # even the implied warranty of MERCHANTABILITY or FITNESS FOR A | ||
14 | # PARTICULAR PURPOSE. | ||
15 | |||
16 | @SET_MAKE@ | ||
17 | VPATH = @srcdir@ | ||
18 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
19 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
20 | pkglibdir = $(libdir)/@PACKAGE@ | ||
21 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
22 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
23 | install_sh_DATA = $(install_sh) -c -m 644 | ||
24 | install_sh_PROGRAM = $(install_sh) -c | ||
25 | install_sh_SCRIPT = $(install_sh) -c | ||
26 | INSTALL_HEADER = $(INSTALL_DATA) | ||
27 | transform = $(program_transform_name) | ||
28 | NORMAL_INSTALL = : | ||
29 | PRE_INSTALL = : | ||
30 | POST_INSTALL = : | ||
31 | NORMAL_UNINSTALL = : | ||
32 | PRE_UNINSTALL = : | ||
33 | POST_UNINSTALL = : | ||
34 | build_triplet = @build@ | ||
35 | host_triplet = @host@ | ||
36 | subdir = src/lib/engines/common/evas_op_mul | ||
37 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
38 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
39 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
40 | $(top_srcdir)/m4/efl_coverage.m4 \ | ||
41 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
42 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
43 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
44 | $(top_srcdir)/m4/evas_check_engine.m4 \ | ||
45 | $(top_srcdir)/m4/evas_check_loader.m4 \ | ||
46 | $(top_srcdir)/m4/evas_converter.m4 \ | ||
47 | $(top_srcdir)/m4/evas_dither.m4 \ | ||
48 | $(top_srcdir)/m4/evas_scaler.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
49 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
50 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
51 | $(top_srcdir)/configure.ac | ||
52 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
53 | $(ACLOCAL_M4) | ||
54 | mkinstalldirs = $(install_sh) -d | ||
55 | CONFIG_HEADER = $(top_builddir)/config.h | ||
56 | CONFIG_CLEAN_FILES = | ||
57 | CONFIG_CLEAN_VPATH_FILES = | ||
58 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
59 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
60 | am__v_GEN_0 = @echo " GEN " $@; | ||
61 | AM_V_at = $(am__v_at_$(V)) | ||
62 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
63 | am__v_at_0 = @ | ||
64 | SOURCES = | ||
65 | DIST_SOURCES = | ||
66 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
67 | ACLOCAL = @ACLOCAL@ | ||
68 | ALLOCA = @ALLOCA@ | ||
69 | AMTAR = @AMTAR@ | ||
70 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
71 | AR = @AR@ | ||
72 | AS = @AS@ | ||
73 | AUTOCONF = @AUTOCONF@ | ||
74 | AUTOHEADER = @AUTOHEADER@ | ||
75 | AUTOMAKE = @AUTOMAKE@ | ||
76 | AWK = @AWK@ | ||
77 | CC = @CC@ | ||
78 | CCDEPMODE = @CCDEPMODE@ | ||
79 | CFLAGS = @CFLAGS@ | ||
80 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
81 | CHECK_LIBS = @CHECK_LIBS@ | ||
82 | CPP = @CPP@ | ||
83 | CPPFLAGS = @CPPFLAGS@ | ||
84 | CXX = @CXX@ | ||
85 | CXXCPP = @CXXCPP@ | ||
86 | CXXDEPMODE = @CXXDEPMODE@ | ||
87 | CXXFLAGS = @CXXFLAGS@ | ||
88 | CYGPATH_W = @CYGPATH_W@ | ||
89 | DEFS = @DEFS@ | ||
90 | DEPDIR = @DEPDIR@ | ||
91 | DIRECTFB_CFLAGS = @DIRECTFB_CFLAGS@ | ||
92 | DIRECTFB_LIBS = @DIRECTFB_LIBS@ | ||
93 | DLLTOOL = @DLLTOOL@ | ||
94 | DSYMUTIL = @DSYMUTIL@ | ||
95 | DUMPBIN = @DUMPBIN@ | ||
96 | ECHO_C = @ECHO_C@ | ||
97 | ECHO_N = @ECHO_N@ | ||
98 | ECHO_T = @ECHO_T@ | ||
99 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
100 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
101 | EDB_CFLAGS = @EDB_CFLAGS@ | ||
102 | EDB_LIBS = @EDB_LIBS@ | ||
103 | EDJE_CFLAGS = @EDJE_CFLAGS@ | ||
104 | EDJE_LIBS = @EDJE_LIBS@ | ||
105 | EET_CFLAGS = @EET_CFLAGS@ | ||
106 | EET_LIBS = @EET_LIBS@ | ||
107 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
108 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
109 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
110 | EGREP = @EGREP@ | ||
111 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
112 | EINA_LIBS = @EINA_LIBS@ | ||
113 | EVAS_CFLAGS = @EVAS_CFLAGS@ | ||
114 | EVAS_LIBS = @EVAS_LIBS@ | ||
115 | EVAS_SSE3_CFLAGS = @EVAS_SSE3_CFLAGS@ | ||
116 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
117 | EVIL_LIBS = @EVIL_LIBS@ | ||
118 | EXEEXT = @EXEEXT@ | ||
119 | FGREP = @FGREP@ | ||
120 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
121 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
122 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
123 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
124 | FRIBIDI_CFLAGS = @FRIBIDI_CFLAGS@ | ||
125 | FRIBIDI_LIBS = @FRIBIDI_LIBS@ | ||
126 | GL_EET_CFLAGS = @GL_EET_CFLAGS@ | ||
127 | GL_EET_LIBS = @GL_EET_LIBS@ | ||
128 | GREP = @GREP@ | ||
129 | HARFBUZZ_CFLAGS = @HARFBUZZ_CFLAGS@ | ||
130 | HARFBUZZ_LIBS = @HARFBUZZ_LIBS@ | ||
131 | INSTALL = @INSTALL@ | ||
132 | INSTALL_DATA = @INSTALL_DATA@ | ||
133 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
134 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
135 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
136 | LD = @LD@ | ||
137 | LDFLAGS = @LDFLAGS@ | ||
138 | LIBOBJS = @LIBOBJS@ | ||
139 | LIBS = @LIBS@ | ||
140 | LIBTOOL = @LIBTOOL@ | ||
141 | LINEBREAK_CFLAGS = @LINEBREAK_CFLAGS@ | ||
142 | LINEBREAK_LIBS = @LINEBREAK_LIBS@ | ||
143 | LIPO = @LIPO@ | ||
144 | LN_S = @LN_S@ | ||
145 | LTLIBOBJS = @LTLIBOBJS@ | ||
146 | MAKEINFO = @MAKEINFO@ | ||
147 | MKDIR_P = @MKDIR_P@ | ||
148 | MODULE_ARCH = @MODULE_ARCH@ | ||
149 | NM = @NM@ | ||
150 | NMEDIT = @NMEDIT@ | ||
151 | OBJC = @OBJC@ | ||
152 | OBJCDEPMODE = @OBJCDEPMODE@ | ||
153 | OBJCFLAGS = @OBJCFLAGS@ | ||
154 | OBJDUMP = @OBJDUMP@ | ||
155 | OBJEXT = @OBJEXT@ | ||
156 | OTOOL = @OTOOL@ | ||
157 | OTOOL64 = @OTOOL64@ | ||
158 | PACKAGE = @PACKAGE@ | ||
159 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
160 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
161 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
162 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
163 | PACKAGE_URL = @PACKAGE_URL@ | ||
164 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
165 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
166 | PIXMAN_CFLAGS = @PIXMAN_CFLAGS@ | ||
167 | PIXMAN_LIBS = @PIXMAN_LIBS@ | ||
168 | PKG_CONFIG = @PKG_CONFIG@ | ||
169 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
170 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
171 | PNG_CFLAGS = @PNG_CFLAGS@ | ||
172 | PNG_LIBS = @PNG_LIBS@ | ||
173 | RANLIB = @RANLIB@ | ||
174 | SDL_CFLAGS = @SDL_CFLAGS@ | ||
175 | SDL_LIBS = @SDL_LIBS@ | ||
176 | SED = @SED@ | ||
177 | SET_MAKE = @SET_MAKE@ | ||
178 | SHELL = @SHELL@ | ||
179 | SHM_OPEN_LINK = @SHM_OPEN_LINK@ | ||
180 | STRIP = @STRIP@ | ||
181 | SVG_CFLAGS = @SVG_CFLAGS@ | ||
182 | SVG_LIBS = @SVG_LIBS@ | ||
183 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
184 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
185 | VERSION = @VERSION@ | ||
186 | VMAJ = @VMAJ@ | ||
187 | WIN32_CFLAGS = @WIN32_CFLAGS@ | ||
188 | WIN32_CPPFLAGS = @WIN32_CPPFLAGS@ | ||
189 | XCB_CFLAGS = @XCB_CFLAGS@ | ||
190 | XCB_GL_CFLAGS = @XCB_GL_CFLAGS@ | ||
191 | XCB_GL_LIBS = @XCB_GL_LIBS@ | ||
192 | XCB_LIBS = @XCB_LIBS@ | ||
193 | XEXT_CFLAGS = @XEXT_CFLAGS@ | ||
194 | XEXT_LIBS = @XEXT_LIBS@ | ||
195 | XMKMF = @XMKMF@ | ||
196 | X_CFLAGS = @X_CFLAGS@ | ||
197 | X_EXTRA_LIBS = @X_EXTRA_LIBS@ | ||
198 | X_LIBS = @X_LIBS@ | ||
199 | X_PRE_LIBS = @X_PRE_LIBS@ | ||
200 | abs_builddir = @abs_builddir@ | ||
201 | abs_srcdir = @abs_srcdir@ | ||
202 | abs_top_builddir = @abs_top_builddir@ | ||
203 | abs_top_srcdir = @abs_top_srcdir@ | ||
204 | ac_ct_CC = @ac_ct_CC@ | ||
205 | ac_ct_CXX = @ac_ct_CXX@ | ||
206 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
207 | ac_ct_OBJC = @ac_ct_OBJC@ | ||
208 | altivec_cflags = @altivec_cflags@ | ||
209 | am__include = @am__include@ | ||
210 | am__leading_dot = @am__leading_dot@ | ||
211 | am__quote = @am__quote@ | ||
212 | am__tar = @am__tar@ | ||
213 | am__untar = @am__untar@ | ||
214 | bindir = @bindir@ | ||
215 | build = @build@ | ||
216 | build_alias = @build_alias@ | ||
217 | build_cpu = @build_cpu@ | ||
218 | build_os = @build_os@ | ||
219 | build_vendor = @build_vendor@ | ||
220 | builddir = @builddir@ | ||
221 | datadir = @datadir@ | ||
222 | datarootdir = @datarootdir@ | ||
223 | dlopen_libs = @dlopen_libs@ | ||
224 | docdir = @docdir@ | ||
225 | dvidir = @dvidir@ | ||
226 | edje_cc = @edje_cc@ | ||
227 | efl_doxygen = @efl_doxygen@ | ||
228 | efl_have_doxygen = @efl_have_doxygen@ | ||
229 | evas_engine_buffer_cflags = @evas_engine_buffer_cflags@ | ||
230 | evas_engine_buffer_libs = @evas_engine_buffer_libs@ | ||
231 | evas_engine_direct3d_cflags = @evas_engine_direct3d_cflags@ | ||
232 | evas_engine_direct3d_libs = @evas_engine_direct3d_libs@ | ||
233 | evas_engine_directfb_cflags = @evas_engine_directfb_cflags@ | ||
234 | evas_engine_directfb_libs = @evas_engine_directfb_libs@ | ||
235 | evas_engine_fb_cflags = @evas_engine_fb_cflags@ | ||
236 | evas_engine_fb_libs = @evas_engine_fb_libs@ | ||
237 | evas_engine_gl_cocoa_cflags = @evas_engine_gl_cocoa_cflags@ | ||
238 | evas_engine_gl_cocoa_libs = @evas_engine_gl_cocoa_libs@ | ||
239 | evas_engine_gl_common_libs = @evas_engine_gl_common_libs@ | ||
240 | evas_engine_gl_sdl_cflags = @evas_engine_gl_sdl_cflags@ | ||
241 | evas_engine_gl_sdl_libs = @evas_engine_gl_sdl_libs@ | ||
242 | evas_engine_gl_xcb_cflags = @evas_engine_gl_xcb_cflags@ | ||
243 | evas_engine_gl_xcb_libs = @evas_engine_gl_xcb_libs@ | ||
244 | evas_engine_gl_xlib_cflags = @evas_engine_gl_xlib_cflags@ | ||
245 | evas_engine_gl_xlib_libs = @evas_engine_gl_xlib_libs@ | ||
246 | evas_engine_psl1ght_cflags = @evas_engine_psl1ght_cflags@ | ||
247 | evas_engine_psl1ght_libs = @evas_engine_psl1ght_libs@ | ||
248 | evas_engine_software_16_ddraw_cflags = @evas_engine_software_16_ddraw_cflags@ | ||
249 | evas_engine_software_16_ddraw_libs = @evas_engine_software_16_ddraw_libs@ | ||
250 | evas_engine_software_16_sdl_cflags = @evas_engine_software_16_sdl_cflags@ | ||
251 | evas_engine_software_16_sdl_libs = @evas_engine_software_16_sdl_libs@ | ||
252 | evas_engine_software_16_wince_cflags = @evas_engine_software_16_wince_cflags@ | ||
253 | evas_engine_software_16_wince_libs = @evas_engine_software_16_wince_libs@ | ||
254 | evas_engine_software_16_x11_cflags = @evas_engine_software_16_x11_cflags@ | ||
255 | evas_engine_software_16_x11_libs = @evas_engine_software_16_x11_libs@ | ||
256 | evas_engine_software_8_x11_cflags = @evas_engine_software_8_x11_cflags@ | ||
257 | evas_engine_software_8_x11_libs = @evas_engine_software_8_x11_libs@ | ||
258 | evas_engine_software_ddraw_cflags = @evas_engine_software_ddraw_cflags@ | ||
259 | evas_engine_software_ddraw_libs = @evas_engine_software_ddraw_libs@ | ||
260 | evas_engine_software_gdi_cflags = @evas_engine_software_gdi_cflags@ | ||
261 | evas_engine_software_gdi_libs = @evas_engine_software_gdi_libs@ | ||
262 | evas_engine_software_sdl_cflags = @evas_engine_software_sdl_cflags@ | ||
263 | evas_engine_software_sdl_libs = @evas_engine_software_sdl_libs@ | ||
264 | evas_engine_software_xcb_cflags = @evas_engine_software_xcb_cflags@ | ||
265 | evas_engine_software_xcb_libs = @evas_engine_software_xcb_libs@ | ||
266 | evas_engine_software_xlib_cflags = @evas_engine_software_xlib_cflags@ | ||
267 | evas_engine_software_xlib_libs = @evas_engine_software_xlib_libs@ | ||
268 | evas_image_loader_bmp_cflags = @evas_image_loader_bmp_cflags@ | ||
269 | evas_image_loader_bmp_libs = @evas_image_loader_bmp_libs@ | ||
270 | evas_image_loader_edb_cflags = @evas_image_loader_edb_cflags@ | ||
271 | evas_image_loader_edb_libs = @evas_image_loader_edb_libs@ | ||
272 | evas_image_loader_eet_cflags = @evas_image_loader_eet_cflags@ | ||
273 | evas_image_loader_eet_libs = @evas_image_loader_eet_libs@ | ||
274 | evas_image_loader_generic_cflags = @evas_image_loader_generic_cflags@ | ||
275 | evas_image_loader_generic_libs = @evas_image_loader_generic_libs@ | ||
276 | evas_image_loader_gif_cflags = @evas_image_loader_gif_cflags@ | ||
277 | evas_image_loader_gif_libs = @evas_image_loader_gif_libs@ | ||
278 | evas_image_loader_ico_cflags = @evas_image_loader_ico_cflags@ | ||
279 | evas_image_loader_ico_libs = @evas_image_loader_ico_libs@ | ||
280 | evas_image_loader_jpeg_cflags = @evas_image_loader_jpeg_cflags@ | ||
281 | evas_image_loader_jpeg_libs = @evas_image_loader_jpeg_libs@ | ||
282 | evas_image_loader_pmaps_cflags = @evas_image_loader_pmaps_cflags@ | ||
283 | evas_image_loader_pmaps_libs = @evas_image_loader_pmaps_libs@ | ||
284 | evas_image_loader_png_cflags = @evas_image_loader_png_cflags@ | ||
285 | evas_image_loader_png_libs = @evas_image_loader_png_libs@ | ||
286 | evas_image_loader_psd_cflags = @evas_image_loader_psd_cflags@ | ||
287 | evas_image_loader_psd_libs = @evas_image_loader_psd_libs@ | ||
288 | evas_image_loader_svg_cflags = @evas_image_loader_svg_cflags@ | ||
289 | evas_image_loader_svg_libs = @evas_image_loader_svg_libs@ | ||
290 | evas_image_loader_tga_cflags = @evas_image_loader_tga_cflags@ | ||
291 | evas_image_loader_tga_libs = @evas_image_loader_tga_libs@ | ||
292 | evas_image_loader_tiff_cflags = @evas_image_loader_tiff_cflags@ | ||
293 | evas_image_loader_tiff_libs = @evas_image_loader_tiff_libs@ | ||
294 | evas_image_loader_wbmp_cflags = @evas_image_loader_wbmp_cflags@ | ||
295 | evas_image_loader_wbmp_libs = @evas_image_loader_wbmp_libs@ | ||
296 | evas_image_loader_xpm_cflags = @evas_image_loader_xpm_cflags@ | ||
297 | evas_image_loader_xpm_libs = @evas_image_loader_xpm_libs@ | ||
298 | exec_prefix = @exec_prefix@ | ||
299 | have_evas_engine_gl_x11 = @have_evas_engine_gl_x11@ | ||
300 | have_evas_engine_gl_xcb = @have_evas_engine_gl_xcb@ | ||
301 | have_evas_engine_gl_xlib = @have_evas_engine_gl_xlib@ | ||
302 | have_evas_engine_software_x11 = @have_evas_engine_software_x11@ | ||
303 | have_evas_engine_software_xcb = @have_evas_engine_software_xcb@ | ||
304 | have_evas_engine_software_xlib = @have_evas_engine_software_xlib@ | ||
305 | have_lcov = @have_lcov@ | ||
306 | host = @host@ | ||
307 | host_alias = @host_alias@ | ||
308 | host_cpu = @host_cpu@ | ||
309 | host_os = @host_os@ | ||
310 | host_vendor = @host_vendor@ | ||
311 | htmldir = @htmldir@ | ||
312 | includedir = @includedir@ | ||
313 | infodir = @infodir@ | ||
314 | install_sh = @install_sh@ | ||
315 | libdir = @libdir@ | ||
316 | libexecdir = @libexecdir@ | ||
317 | localedir = @localedir@ | ||
318 | localstatedir = @localstatedir@ | ||
319 | lt_ECHO = @lt_ECHO@ | ||
320 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
321 | mandir = @mandir@ | ||
322 | mkdir_p = @mkdir_p@ | ||
323 | oldincludedir = @oldincludedir@ | ||
324 | pdfdir = @pdfdir@ | ||
325 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
326 | prefix = @prefix@ | ||
327 | program_transform_name = @program_transform_name@ | ||
328 | psdir = @psdir@ | ||
329 | pthread_cflags = @pthread_cflags@ | ||
330 | pthread_libs = @pthread_libs@ | ||
331 | release_info = @release_info@ | ||
332 | requirement_evas = @requirement_evas@ | ||
333 | sbindir = @sbindir@ | ||
334 | sharedstatedir = @sharedstatedir@ | ||
335 | srcdir = @srcdir@ | ||
336 | sysconfdir = @sysconfdir@ | ||
337 | target_alias = @target_alias@ | ||
338 | top_build_prefix = @top_build_prefix@ | ||
339 | top_builddir = @top_builddir@ | ||
340 | top_srcdir = @top_srcdir@ | ||
341 | version_info = @version_info@ | ||
342 | MAINTAINERCLEANFILES = Makefile.in | ||
343 | EXTRA_DIST = \ | ||
344 | op_mul_color_.c \ | ||
345 | op_mul_color_i386.c \ | ||
346 | op_mul_mask_color_.c \ | ||
347 | op_mul_mask_color_i386.c \ | ||
348 | op_mul_pixel_.c \ | ||
349 | op_mul_pixel_color_.c \ | ||
350 | op_mul_pixel_color_i386.c \ | ||
351 | op_mul_pixel_i386.c \ | ||
352 | op_mul_pixel_mask_.c \ | ||
353 | op_mul_pixel_mask_i386.c | ||
354 | |||
355 | all: all-am | ||
356 | |||
357 | .SUFFIXES: | ||
358 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
359 | @for dep in $?; do \ | ||
360 | case '$(am__configure_deps)' in \ | ||
361 | *$$dep*) \ | ||
362 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
363 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
364 | exit 1;; \ | ||
365 | esac; \ | ||
366 | done; \ | ||
367 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/lib/engines/common/evas_op_mul/Makefile'; \ | ||
368 | $(am__cd) $(top_srcdir) && \ | ||
369 | $(AUTOMAKE) --gnu src/lib/engines/common/evas_op_mul/Makefile | ||
370 | .PRECIOUS: Makefile | ||
371 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
372 | @case '$?' in \ | ||
373 | *config.status*) \ | ||
374 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
375 | *) \ | ||
376 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
377 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
378 | esac; | ||
379 | |||
380 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
381 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
382 | |||
383 | $(top_srcdir)/configure: $(am__configure_deps) | ||
384 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
385 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
386 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
387 | $(am__aclocal_m4_deps): | ||
388 | |||
389 | mostlyclean-libtool: | ||
390 | -rm -f *.lo | ||
391 | |||
392 | clean-libtool: | ||
393 | -rm -rf .libs _libs | ||
394 | tags: TAGS | ||
395 | TAGS: | ||
396 | |||
397 | ctags: CTAGS | ||
398 | CTAGS: | ||
399 | |||
400 | |||
401 | distdir: $(DISTFILES) | ||
402 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
403 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
404 | list='$(DISTFILES)'; \ | ||
405 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
406 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
407 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
408 | case $$dist_files in \ | ||
409 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
410 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
411 | sort -u` ;; \ | ||
412 | esac; \ | ||
413 | for file in $$dist_files; do \ | ||
414 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
415 | if test -d $$d/$$file; then \ | ||
416 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
417 | if test -d "$(distdir)/$$file"; then \ | ||
418 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
419 | fi; \ | ||
420 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
421 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
422 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
423 | fi; \ | ||
424 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
425 | else \ | ||
426 | test -f "$(distdir)/$$file" \ | ||
427 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
428 | || exit 1; \ | ||
429 | fi; \ | ||
430 | done | ||
431 | check-am: all-am | ||
432 | check: check-am | ||
433 | all-am: Makefile | ||
434 | installdirs: | ||
435 | install: install-am | ||
436 | install-exec: install-exec-am | ||
437 | install-data: install-data-am | ||
438 | uninstall: uninstall-am | ||
439 | |||
440 | install-am: all-am | ||
441 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
442 | |||
443 | installcheck: installcheck-am | ||
444 | install-strip: | ||
445 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
446 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
447 | `test -z '$(STRIP)' || \ | ||
448 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
449 | mostlyclean-generic: | ||
450 | |||
451 | clean-generic: | ||
452 | |||
453 | distclean-generic: | ||
454 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
455 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
456 | |||
457 | maintainer-clean-generic: | ||
458 | @echo "This command is intended for maintainers to use" | ||
459 | @echo "it deletes files that may require special tools to rebuild." | ||
460 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
461 | clean: clean-am | ||
462 | |||
463 | clean-am: clean-generic clean-libtool mostlyclean-am | ||
464 | |||
465 | distclean: distclean-am | ||
466 | -rm -f Makefile | ||
467 | distclean-am: clean-am distclean-generic | ||
468 | |||
469 | dvi: dvi-am | ||
470 | |||
471 | dvi-am: | ||
472 | |||
473 | html: html-am | ||
474 | |||
475 | html-am: | ||
476 | |||
477 | info: info-am | ||
478 | |||
479 | info-am: | ||
480 | |||
481 | install-data-am: | ||
482 | |||
483 | install-dvi: install-dvi-am | ||
484 | |||
485 | install-dvi-am: | ||
486 | |||
487 | install-exec-am: | ||
488 | |||
489 | install-html: install-html-am | ||
490 | |||
491 | install-html-am: | ||
492 | |||
493 | install-info: install-info-am | ||
494 | |||
495 | install-info-am: | ||
496 | |||
497 | install-man: | ||
498 | |||
499 | install-pdf: install-pdf-am | ||
500 | |||
501 | install-pdf-am: | ||
502 | |||
503 | install-ps: install-ps-am | ||
504 | |||
505 | install-ps-am: | ||
506 | |||
507 | installcheck-am: | ||
508 | |||
509 | maintainer-clean: maintainer-clean-am | ||
510 | -rm -f Makefile | ||
511 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
512 | |||
513 | mostlyclean: mostlyclean-am | ||
514 | |||
515 | mostlyclean-am: mostlyclean-generic mostlyclean-libtool | ||
516 | |||
517 | pdf: pdf-am | ||
518 | |||
519 | pdf-am: | ||
520 | |||
521 | ps: ps-am | ||
522 | |||
523 | ps-am: | ||
524 | |||
525 | uninstall-am: | ||
526 | |||
527 | .MAKE: install-am install-strip | ||
528 | |||
529 | .PHONY: all all-am check check-am clean clean-generic clean-libtool \ | ||
530 | distclean distclean-generic distclean-libtool distdir dvi \ | ||
531 | dvi-am html html-am info info-am install install-am \ | ||
532 | install-data install-data-am install-dvi install-dvi-am \ | ||
533 | install-exec install-exec-am install-html install-html-am \ | ||
534 | install-info install-info-am install-man install-pdf \ | ||
535 | install-pdf-am install-ps install-ps-am install-strip \ | ||
536 | installcheck installcheck-am installdirs maintainer-clean \ | ||
537 | maintainer-clean-generic mostlyclean mostlyclean-generic \ | ||
538 | mostlyclean-libtool pdf pdf-am ps ps-am uninstall uninstall-am | ||
539 | |||
540 | |||
541 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
542 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
543 | .NOEXPORT: | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c new file mode 100644 index 0000000..fb656b5 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_color_.c | |||
@@ -0,0 +1,65 @@ | |||
1 | /* mul color --> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_c_dp(DATA32 *s __UNUSED__, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | for (; d < e; d++) { | ||
8 | *d = MUL4_SYM(c, *d); | ||
9 | } | ||
10 | } | ||
11 | |||
12 | static void | ||
13 | _op_mul_caa_dp(DATA32 *s __UNUSED__, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
14 | DATA32 *e = d + l; | ||
15 | c = 1 + (c >> 24); | ||
16 | for (; d < e; d++) { | ||
17 | *d = MUL_256(c, *d); | ||
18 | } | ||
19 | } | ||
20 | |||
21 | #define _op_mul_can_dp _op_mul_c_dp | ||
22 | |||
23 | #define _op_mul_c_dpan _op_mul_c_dp | ||
24 | #define _op_mul_can_dpan _op_mul_can_dp | ||
25 | #define _op_mul_caa_dpan _op_mul_caa_dp | ||
26 | |||
27 | static void | ||
28 | init_mul_color_span_funcs_c(void) | ||
29 | { | ||
30 | op_mul_span_funcs[SP_N][SM_N][SC][DP][CPU_C] = _op_mul_c_dp; | ||
31 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP][CPU_C] = _op_mul_can_dp; | ||
32 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP][CPU_C] = _op_mul_caa_dp; | ||
33 | |||
34 | op_mul_span_funcs[SP_N][SM_N][SC][DP_AN][CPU_C] = _op_mul_c_dpan; | ||
35 | op_mul_span_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_can_dpan; | ||
36 | op_mul_span_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_caa_dpan; | ||
37 | } | ||
38 | #endif | ||
39 | |||
40 | #ifdef BUILD_C | ||
41 | static void | ||
42 | _op_mul_pt_c_dp(DATA32 s __UNUSED__, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
43 | *d = MUL4_SYM(c, *d); | ||
44 | } | ||
45 | |||
46 | #define _op_mul_pt_can_dp _op_mul_pt_c_dp | ||
47 | #define _op_mul_pt_caa_dp _op_mul_pt_c_dp | ||
48 | |||
49 | #define _op_mul_pt_c_dpan _op_mul_pt_c_dp | ||
50 | #define _op_mul_pt_can_dpan _op_mul_pt_can_dp | ||
51 | #define _op_mul_pt_caa_dpan _op_mul_pt_caa_dp | ||
52 | |||
53 | static void | ||
54 | init_mul_color_pt_funcs_c(void) | ||
55 | { | ||
56 | op_mul_pt_funcs[SP_N][SM_N][SC][DP][CPU_C] = _op_mul_pt_c_dp; | ||
57 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP][CPU_C] = _op_mul_pt_can_dp; | ||
58 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP][CPU_C] = _op_mul_pt_caa_dp; | ||
59 | |||
60 | op_mul_pt_funcs[SP_N][SM_N][SC][DP_AN][CPU_C] = _op_mul_pt_c_dpan; | ||
61 | op_mul_pt_funcs[SP_N][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pt_can_dpan; | ||
62 | op_mul_pt_funcs[SP_N][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pt_caa_dpan; | ||
63 | } | ||
64 | #endif | ||
65 | |||
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 | ||
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 new file mode 100644 index 0000000..7a6e403 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_.c | |||
@@ -0,0 +1,72 @@ | |||
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 | ||
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 new file mode 100644 index 0000000..1999503 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_mask_color_i386.c | |||
@@ -0,0 +1,92 @@ | |||
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 | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_.c new file mode 100644 index 0000000..2e034b9 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_.c | |||
@@ -0,0 +1,56 @@ | |||
1 | /* mul pixel --> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_p_dp(DATA32 *s, DATA8 *m __UNUSED__, DATA32 c __UNUSED__, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | for (; d < e; d++, s++) { | ||
8 | *d = MUL4_SYM(*s, *d); | ||
9 | } | ||
10 | } | ||
11 | |||
12 | #define _op_mul_pas_dp _op_mul_p_dp | ||
13 | #define _op_mul_pan_dp _op_mul_p_dp | ||
14 | |||
15 | #define _op_mul_p_dpan _op_mul_p_dp | ||
16 | #define _op_mul_pas_dpan _op_mul_pas_dp | ||
17 | #define _op_mul_pan_dpan _op_mul_pan_dp | ||
18 | |||
19 | static void | ||
20 | init_mul_pixel_span_funcs_c(void) | ||
21 | { | ||
22 | op_mul_span_funcs[SP][SM_N][SC_N][DP][CPU_C] = _op_mul_p_dp; | ||
23 | op_mul_span_funcs[SP_AS][SM_N][SC_N][DP][CPU_C] = _op_mul_pas_dp; | ||
24 | op_mul_span_funcs[SP_AN][SM_N][SC_N][DP][CPU_C] = _op_mul_pan_dp; | ||
25 | |||
26 | op_mul_span_funcs[SP][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_p_dpan; | ||
27 | op_mul_span_funcs[SP_AS][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_pas_dpan; | ||
28 | op_mul_span_funcs[SP_AN][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_pan_dpan; | ||
29 | } | ||
30 | #endif | ||
31 | |||
32 | #ifdef BUILD_C | ||
33 | static void | ||
34 | _op_mul_pt_p_dp(DATA32 s, DATA8 m __UNUSED__, DATA32 c __UNUSED__, DATA32 *d) { | ||
35 | *d = MUL4_SYM(s, *d); | ||
36 | } | ||
37 | |||
38 | #define _op_mul_pt_pas_dp _op_mul_pt_p_dp | ||
39 | #define _op_mul_pt_pan_dp _op_mul_pt_p_dp | ||
40 | |||
41 | #define _op_mul_pt_p_dpan _op_mul_pt_p_dp | ||
42 | #define _op_mul_pt_pan_dpan _op_mul_pt_pan_dp | ||
43 | #define _op_mul_pt_pas_dpan _op_mul_pt_pas_dp | ||
44 | |||
45 | static void | ||
46 | init_mul_pixel_pt_funcs_c(void) | ||
47 | { | ||
48 | op_mul_pt_funcs[SP][SM_N][SC_N][DP][CPU_C] = _op_mul_pt_p_dp; | ||
49 | op_mul_pt_funcs[SP_AS][SM_N][SC_N][DP][CPU_C] = _op_mul_pt_pas_dp; | ||
50 | op_mul_pt_funcs[SP_AN][SM_N][SC_N][DP][CPU_C] = _op_mul_pt_pan_dp; | ||
51 | |||
52 | op_mul_pt_funcs[SP][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_pt_p_dpan; | ||
53 | op_mul_pt_funcs[SP_AS][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_pt_pas_dpan; | ||
54 | op_mul_pt_funcs[SP_AN][SM_N][SC_N][DP_AN][CPU_C] = _op_mul_pt_pan_dpan; | ||
55 | } | ||
56 | #endif | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_.c new file mode 100644 index 0000000..3ea6919 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_.c | |||
@@ -0,0 +1,122 @@ | |||
1 | /* mul pixel x color --> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_p_c_dp(DATA32 *s, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | while (d < e) { | ||
8 | DATA32 cs = MUL4_SYM(c, *s); | ||
9 | *d = MUL4_SYM(cs, *d); | ||
10 | s++; d++; | ||
11 | } | ||
12 | } | ||
13 | |||
14 | static void | ||
15 | _op_mul_p_caa_dp(DATA32 *s, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
16 | DATA32 *e = d + l; | ||
17 | c = 1 + (c >> 24); | ||
18 | while (d < e) | ||
19 | { | ||
20 | DATA32 cs = MUL_256(c, *s); | ||
21 | *d = MUL4_SYM(cs, *d); | ||
22 | s++; d++; | ||
23 | } | ||
24 | } | ||
25 | |||
26 | #define _op_mul_pas_c_dp _op_mul_p_c_dp | ||
27 | #define _op_mul_pan_c_dp _op_mul_p_c_dp | ||
28 | #define _op_mul_p_can_dp _op_mul_p_c_dp | ||
29 | #define _op_mul_pas_can_dp _op_mul_p_c_dp | ||
30 | #define _op_mul_pan_can_dp _op_mul_p_c_dp | ||
31 | #define _op_mul_pas_caa_dp _op_mul_p_caa_dp | ||
32 | #define _op_mul_pan_caa_dp _op_mul_p_caa_dp | ||
33 | |||
34 | #define _op_mul_p_c_dpan _op_mul_p_c_dp | ||
35 | #define _op_mul_pas_c_dpan _op_mul_pas_c_dp | ||
36 | #define _op_mul_pan_c_dpan _op_mul_pan_c_dp | ||
37 | #define _op_mul_p_can_dpan _op_mul_p_can_dp | ||
38 | #define _op_mul_pas_can_dpan _op_mul_pas_can_dp | ||
39 | #define _op_mul_pan_can_dpan _op_mul_pan_can_dp | ||
40 | #define _op_mul_p_caa_dpan _op_mul_p_caa_dp | ||
41 | #define _op_mul_pas_caa_dpan _op_mul_pas_caa_dp | ||
42 | #define _op_mul_pan_caa_dpan _op_mul_pan_caa_dp | ||
43 | |||
44 | static void | ||
45 | init_mul_pixel_color_span_funcs_c(void) | ||
46 | { | ||
47 | op_mul_span_funcs[SP][SM_N][SC][DP][CPU_C] = _op_mul_p_c_dp; | ||
48 | op_mul_span_funcs[SP_AS][SM_N][SC][DP][CPU_C] = _op_mul_pas_c_dp; | ||
49 | op_mul_span_funcs[SP_AN][SM_N][SC][DP][CPU_C] = _op_mul_pan_c_dp; | ||
50 | op_mul_span_funcs[SP][SM_N][SC_AN][DP][CPU_C] = _op_mul_p_can_dp; | ||
51 | op_mul_span_funcs[SP_AS][SM_N][SC_AN][DP][CPU_C] = _op_mul_pas_can_dp; | ||
52 | op_mul_span_funcs[SP_AN][SM_N][SC_AN][DP][CPU_C] = _op_mul_pan_can_dp; | ||
53 | op_mul_span_funcs[SP][SM_N][SC_AA][DP][CPU_C] = _op_mul_p_caa_dp; | ||
54 | op_mul_span_funcs[SP_AS][SM_N][SC_AA][DP][CPU_C] = _op_mul_pas_caa_dp; | ||
55 | op_mul_span_funcs[SP_AN][SM_N][SC_AA][DP][CPU_C] = _op_mul_pan_caa_dp; | ||
56 | |||
57 | op_mul_span_funcs[SP][SM_N][SC][DP_AN][CPU_C] = _op_mul_p_c_dpan; | ||
58 | op_mul_span_funcs[SP_AS][SM_N][SC][DP_AN][CPU_C] = _op_mul_pas_c_dpan; | ||
59 | op_mul_span_funcs[SP_AN][SM_N][SC][DP_AN][CPU_C] = _op_mul_pan_c_dpan; | ||
60 | op_mul_span_funcs[SP][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_p_can_dpan; | ||
61 | op_mul_span_funcs[SP_AS][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pas_can_dpan; | ||
62 | op_mul_span_funcs[SP_AN][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pan_can_dpan; | ||
63 | op_mul_span_funcs[SP][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_p_caa_dpan; | ||
64 | op_mul_span_funcs[SP_AS][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pas_caa_dpan; | ||
65 | op_mul_span_funcs[SP_AN][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pan_caa_dpan; | ||
66 | } | ||
67 | #endif | ||
68 | |||
69 | #ifdef BUILD_C | ||
70 | static void | ||
71 | _op_mul_pt_p_c_dp(DATA32 s, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
72 | s = MUL4_SYM(c, s); | ||
73 | *d = MUL4_SYM(s, *d); | ||
74 | } | ||
75 | |||
76 | static void | ||
77 | _op_mul_pt_p_caa_dp(DATA32 s, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
78 | s = MUL_SYM(c >> 24, s); | ||
79 | *d = MUL4_SYM(s, *d); | ||
80 | } | ||
81 | |||
82 | #define _op_mul_pt_pas_c_dp _op_mul_pt_p_c_dp | ||
83 | #define _op_mul_pt_pan_c_dp _op_mul_pt_p_c_dp | ||
84 | #define _op_mul_pt_p_can_dp _op_mul_pt_p_c_dp | ||
85 | #define _op_mul_pt_pas_can_dp _op_mul_pt_p_c_dp | ||
86 | #define _op_mul_pt_pan_can_dp _op_mul_pt_p_c_dp | ||
87 | #define _op_mul_pt_pas_caa_dp _op_mul_pt_p_caa_dp | ||
88 | #define _op_mul_pt_pan_caa_dp _op_mul_pt_p_caa_dp | ||
89 | |||
90 | #define _op_mul_pt_p_c_dpan _op_mul_pt_p_c_dp | ||
91 | #define _op_mul_pt_pan_c_dpan _op_mul_pt_pan_c_dp | ||
92 | #define _op_mul_pt_pas_c_dpan _op_mul_pt_pas_c_dp | ||
93 | #define _op_mul_pt_p_can_dpan _op_mul_pt_p_can_dp | ||
94 | #define _op_mul_pt_pan_can_dpan _op_mul_pt_pan_can_dp | ||
95 | #define _op_mul_pt_pas_can_dpan _op_mul_pt_pas_can_dp | ||
96 | #define _op_mul_pt_p_caa_dpan _op_mul_pt_p_caa_dp | ||
97 | #define _op_mul_pt_pan_caa_dpan _op_mul_pt_pan_caa_dp | ||
98 | #define _op_mul_pt_pas_caa_dpan _op_mul_pt_pas_caa_dp | ||
99 | static void | ||
100 | init_mul_pixel_color_pt_funcs_c(void) | ||
101 | { | ||
102 | op_mul_pt_funcs[SP][SM_N][SC][DP][CPU_C] = _op_mul_pt_p_c_dp; | ||
103 | op_mul_pt_funcs[SP_AS][SM_N][SC][DP][CPU_C] = _op_mul_pt_pas_c_dp; | ||
104 | op_mul_pt_funcs[SP_AN][SM_N][SC][DP][CPU_C] = _op_mul_pt_pan_c_dp; | ||
105 | op_mul_pt_funcs[SP][SM_N][SC_AN][DP][CPU_C] = _op_mul_pt_p_can_dp; | ||
106 | op_mul_pt_funcs[SP_AS][SM_N][SC_AN][DP][CPU_C] = _op_mul_pt_pas_can_dp; | ||
107 | op_mul_pt_funcs[SP_AN][SM_N][SC_AN][DP][CPU_C] = _op_mul_pt_pan_can_dp; | ||
108 | op_mul_pt_funcs[SP][SM_N][SC_AA][DP][CPU_C] = _op_mul_pt_p_caa_dp; | ||
109 | op_mul_pt_funcs[SP_AS][SM_N][SC_AA][DP][CPU_C] = _op_mul_pt_pas_caa_dp; | ||
110 | op_mul_pt_funcs[SP_AN][SM_N][SC_AA][DP][CPU_C] = _op_mul_pt_pan_caa_dp; | ||
111 | |||
112 | op_mul_pt_funcs[SP][SM_N][SC][DP_AN][CPU_C] = _op_mul_pt_p_c_dpan; | ||
113 | op_mul_pt_funcs[SP_AS][SM_N][SC][DP_AN][CPU_C] = _op_mul_pt_pas_c_dpan; | ||
114 | op_mul_pt_funcs[SP_AN][SM_N][SC][DP_AN][CPU_C] = _op_mul_pt_pan_c_dpan; | ||
115 | op_mul_pt_funcs[SP][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pt_p_can_dpan; | ||
116 | op_mul_pt_funcs[SP_AS][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pt_pas_can_dpan; | ||
117 | op_mul_pt_funcs[SP_AN][SM_N][SC_AN][DP_AN][CPU_C] = _op_mul_pt_pan_can_dpan; | ||
118 | op_mul_pt_funcs[SP][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pt_p_caa_dpan; | ||
119 | op_mul_pt_funcs[SP_AS][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pt_pas_caa_dpan; | ||
120 | op_mul_pt_funcs[SP_AN][SM_N][SC_AA][DP_AN][CPU_C] = _op_mul_pt_pan_caa_dpan; | ||
121 | } | ||
122 | #endif | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_i386.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_i386.c new file mode 100644 index 0000000..24f5a80 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_color_i386.c | |||
@@ -0,0 +1,120 @@ | |||
1 | /* mul pixel x color --> dst */ | ||
2 | |||
3 | #ifdef BUILD_MMX | ||
4 | static void | ||
5 | _op_mul_p_c_dp_mmx(DATA32 *s, DATA8 *m __UNUSED__, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | MOV_A2R(ALPHA_255, mm5) | ||
8 | pxor_r2r(mm0, mm0); | ||
9 | MOV_P2R(c, mm2, mm0) | ||
10 | while (d < e) | ||
11 | { | ||
12 | MOV_P2R(*s, mm3, mm0) | ||
13 | MUL4_SYM_R2R(mm2, mm3, mm5) | ||
14 | MOV_P2R(*d, mm1, mm0) | ||
15 | MUL4_SYM_R2R(mm3, mm1, mm5) | ||
16 | MOV_R2P(mm1, *d, mm0) | ||
17 | s++; d++; | ||
18 | } | ||
19 | } | ||
20 | |||
21 | #define _op_mul_pas_c_dp_mmx _op_mul_p_c_dp_mmx | ||
22 | #define _op_mul_pan_c_dp_mmx _op_mul_p_c_dp_mmx | ||
23 | #define _op_mul_p_can_dp_mmx _op_mul_p_c_dp_mmx | ||
24 | #define _op_mul_pas_can_dp_mmx _op_mul_p_c_dp_mmx | ||
25 | #define _op_mul_pan_can_dp_mmx _op_mul_p_c_dp_mmx | ||
26 | #define _op_mul_p_caa_dp_mmx _op_mul_p_c_dp_mmx | ||
27 | #define _op_mul_pas_caa_dp_mmx _op_mul_p_c_dp_mmx | ||
28 | #define _op_mul_pan_caa_dp_mmx _op_mul_p_c_dp_mmx | ||
29 | |||
30 | #define _op_mul_p_c_dpan_mmx _op_mul_p_c_dp_mmx | ||
31 | #define _op_mul_pan_c_dpan_mmx _op_mul_pan_c_dp_mmx | ||
32 | #define _op_mul_pas_c_dpan_mmx _op_mul_pas_c_dp_mmx | ||
33 | #define _op_mul_p_can_dpan_mmx _op_mul_p_can_dp_mmx | ||
34 | #define _op_mul_pan_can_dpan_mmx _op_mul_pan_can_dp_mmx | ||
35 | #define _op_mul_pas_can_dpan_mmx _op_mul_pas_can_dp_mmx | ||
36 | #define _op_mul_p_caa_dpan_mmx _op_mul_p_caa_dp_mmx | ||
37 | #define _op_mul_pan_caa_dpan_mmx _op_mul_pan_caa_dp_mmx | ||
38 | #define _op_mul_pas_caa_dpan_mmx _op_mul_pas_caa_dp_mmx | ||
39 | |||
40 | static void | ||
41 | init_mul_pixel_color_span_funcs_mmx(void) | ||
42 | { | ||
43 | op_mul_span_funcs[SP][SM_N][SC][DP][CPU_MMX] = _op_mul_p_c_dp_mmx; | ||
44 | op_mul_span_funcs[SP_AS][SM_N][SC][DP][CPU_MMX] = _op_mul_pas_c_dp_mmx; | ||
45 | op_mul_span_funcs[SP_AN][SM_N][SC][DP][CPU_MMX] = _op_mul_pan_c_dp_mmx; | ||
46 | op_mul_span_funcs[SP][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_p_can_dp_mmx; | ||
47 | op_mul_span_funcs[SP_AS][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pas_can_dp_mmx; | ||
48 | op_mul_span_funcs[SP_AN][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pan_can_dp_mmx; | ||
49 | op_mul_span_funcs[SP][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_p_caa_dp_mmx; | ||
50 | op_mul_span_funcs[SP_AS][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pas_caa_dp_mmx; | ||
51 | op_mul_span_funcs[SP_AN][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pan_caa_dp_mmx; | ||
52 | |||
53 | op_mul_span_funcs[SP][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_p_c_dpan_mmx; | ||
54 | op_mul_span_funcs[SP_AS][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pas_c_dpan_mmx; | ||
55 | op_mul_span_funcs[SP_AN][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pan_c_dpan_mmx; | ||
56 | op_mul_span_funcs[SP][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_p_can_dpan_mmx; | ||
57 | op_mul_span_funcs[SP_AS][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pas_can_dpan_mmx; | ||
58 | op_mul_span_funcs[SP_AN][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pan_can_dpan_mmx; | ||
59 | op_mul_span_funcs[SP][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_p_caa_dpan_mmx; | ||
60 | op_mul_span_funcs[SP_AS][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pas_caa_dpan_mmx; | ||
61 | op_mul_span_funcs[SP_AN][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pan_caa_dpan_mmx; | ||
62 | } | ||
63 | #endif | ||
64 | |||
65 | #ifdef BUILD_MMX | ||
66 | static void | ||
67 | _op_mul_pt_p_c_dp_mmx(DATA32 s, DATA8 m __UNUSED__, DATA32 c, DATA32 *d) { | ||
68 | MOV_A2R(ALPHA_255, mm5) | ||
69 | pxor_r2r(mm0, mm0); | ||
70 | MOV_P2R(c, mm2, mm0) | ||
71 | MOV_P2R(s, mm3, mm0) | ||
72 | MUL4_SYM_R2R(mm2, mm3, mm5) | ||
73 | MOV_P2R(*d, mm1, mm0) | ||
74 | MUL4_SYM_R2R(mm3, mm1, mm5) | ||
75 | MOV_R2P(mm1, *d, mm0) | ||
76 | } | ||
77 | |||
78 | #define _op_mul_pt_pas_c_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
79 | #define _op_mul_pt_pan_c_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
80 | #define _op_mul_pt_p_can_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
81 | #define _op_mul_pt_pas_can_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
82 | #define _op_mul_pt_pan_can_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
83 | #define _op_mul_pt_p_caa_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
84 | #define _op_mul_pt_pas_caa_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
85 | #define _op_mul_pt_pan_caa_dp_mmx _op_mul_pt_p_c_dp_mmx | ||
86 | |||
87 | #define _op_mul_pt_p_c_dpan_mmx _op_mul_pt_p_c_dp_mmx | ||
88 | #define _op_mul_pt_pan_c_dpan_mmx _op_mul_pt_pan_c_dp_mmx | ||
89 | #define _op_mul_pt_pas_c_dpan_mmx _op_mul_pt_pas_c_dp_mmx | ||
90 | #define _op_mul_pt_p_can_dpan_mmx _op_mul_pt_p_can_dp_mmx | ||
91 | #define _op_mul_pt_pan_can_dpan_mmx _op_mul_pt_pan_can_dp_mmx | ||
92 | #define _op_mul_pt_pas_can_dpan_mmx _op_mul_pt_pas_can_dp_mmx | ||
93 | #define _op_mul_pt_p_caa_dpan_mmx _op_mul_pt_p_caa_dp_mmx | ||
94 | #define _op_mul_pt_pan_caa_dpan_mmx _op_mul_pt_pan_caa_dp_mmx | ||
95 | #define _op_mul_pt_pas_caa_dpan_mmx _op_mul_pt_pas_caa_dp_mmx | ||
96 | |||
97 | static void | ||
98 | init_mul_pixel_color_pt_funcs_mmx(void) | ||
99 | { | ||
100 | op_mul_pt_funcs[SP][SM_N][SC][DP][CPU_MMX] = _op_mul_pt_p_c_dp_mmx; | ||
101 | op_mul_pt_funcs[SP_AS][SM_N][SC][DP][CPU_MMX] = _op_mul_pt_pas_c_dp_mmx; | ||
102 | op_mul_pt_funcs[SP_AN][SM_N][SC][DP][CPU_MMX] = _op_mul_pt_pan_c_dp_mmx; | ||
103 | op_mul_pt_funcs[SP][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pt_p_can_dp_mmx; | ||
104 | op_mul_pt_funcs[SP_AS][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pt_pas_can_dp_mmx; | ||
105 | op_mul_pt_funcs[SP_AN][SM_N][SC_AN][DP][CPU_MMX] = _op_mul_pt_pan_can_dp_mmx; | ||
106 | op_mul_pt_funcs[SP][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pt_p_caa_dp_mmx; | ||
107 | op_mul_pt_funcs[SP_AS][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pt_pas_caa_dp_mmx; | ||
108 | op_mul_pt_funcs[SP_AN][SM_N][SC_AA][DP][CPU_MMX] = _op_mul_pt_pan_caa_dp_mmx; | ||
109 | |||
110 | op_mul_pt_funcs[SP][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pt_p_c_dpan_mmx; | ||
111 | op_mul_pt_funcs[SP_AS][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pt_pas_c_dpan_mmx; | ||
112 | op_mul_pt_funcs[SP_AN][SM_N][SC][DP_AN][CPU_MMX] = _op_mul_pt_pan_c_dpan_mmx; | ||
113 | op_mul_pt_funcs[SP][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pt_p_can_dpan_mmx; | ||
114 | op_mul_pt_funcs[SP_AS][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pt_pas_can_dpan_mmx; | ||
115 | op_mul_pt_funcs[SP_AN][SM_N][SC_AN][DP_AN][CPU_MMX] = _op_mul_pt_pan_can_dpan_mmx; | ||
116 | op_mul_pt_funcs[SP][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pt_p_caa_dpan_mmx; | ||
117 | op_mul_pt_funcs[SP_AS][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pt_pas_caa_dpan_mmx; | ||
118 | op_mul_pt_funcs[SP_AN][SM_N][SC_AA][DP_AN][CPU_MMX] = _op_mul_pt_pan_caa_dpan_mmx; | ||
119 | } | ||
120 | #endif | ||
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 | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_.c b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_.c new file mode 100644 index 0000000..37d0497 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul/op_mul_pixel_mask_.c | |||
@@ -0,0 +1,117 @@ | |||
1 | /* mul pixel x mask --> dst */ | ||
2 | |||
3 | #ifdef BUILD_C | ||
4 | static void | ||
5 | _op_mul_p_mas_dp(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
6 | DATA32 *e = d + l; | ||
7 | while (d < e) | ||
8 | { | ||
9 | c = *m; | ||
10 | switch(c) | ||
11 | { | ||
12 | case 0: | ||
13 | break; | ||
14 | case 255: | ||
15 | *d = MUL4_SYM(*s, *d); | ||
16 | break; | ||
17 | default: | ||
18 | c = ~(*s); | ||
19 | c = ~MUL_SYM(*m, c); | ||
20 | *d = MUL4_SYM(c, *d); | ||
21 | break; | ||
22 | } | ||
23 | m++; s++; d++; | ||
24 | } | ||
25 | } | ||
26 | |||
27 | static void | ||
28 | _op_mul_pan_mas_dp(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
29 | DATA32 *e = d + l; | ||
30 | while (d < e) | ||
31 | { | ||
32 | c = *m; | ||
33 | switch(c) | ||
34 | { | ||
35 | case 0: | ||
36 | break; | ||
37 | case 255: | ||
38 | *d = (*d & 0xff000000) + MUL3_SYM(*s, *d); | ||
39 | break; | ||
40 | default: | ||
41 | c = ~(*s); | ||
42 | c = ~MUL_SYM(*m, c); | ||
43 | *d = (*d & 0xff000000) + MUL3_SYM(c, *d); | ||
44 | break; | ||
45 | } | ||
46 | m++; s++; d++; | ||
47 | } | ||
48 | } | ||
49 | |||
50 | static void | ||
51 | _op_mul_p_mas_dpan(DATA32 *s, DATA8 *m, DATA32 c, DATA32 *d, int l) { | ||
52 | DATA32 *e = d + l; | ||
53 | while (d < e) | ||
54 | { | ||
55 | c = *m; | ||
56 | switch(c) | ||
57 | { | ||
58 | case 0: | ||
59 | break; | ||
60 | case 255: | ||
61 | *d = (*s & 0xff000000) + MUL3_SYM(*s, *d); | ||
62 | break; | ||
63 | default: | ||
64 | c = ~(*s); | ||
65 | c = ~MUL_SYM(*m, c); | ||
66 | *d = (c & 0xff000000) + MUL3_SYM(c, *d); | ||
67 | break; | ||
68 | } | ||
69 | m++; d++; | ||
70 | } | ||
71 | } | ||
72 | |||
73 | #define _op_mul_pas_mas_dp _op_mul_p_mas_dp | ||
74 | |||
75 | #define _op_mul_pan_mas_dpan _op_mul_p_mas_dpan | ||
76 | #define _op_mul_pas_mas_dpan _op_mul_p_mas_dpan | ||
77 | |||
78 | static void | ||
79 | init_mul_pixel_mask_span_funcs_c(void) | ||
80 | { | ||
81 | op_mul_span_funcs[SP][SM_AS][SC_N][DP][CPU_C] = _op_mul_p_mas_dp; | ||
82 | op_mul_span_funcs[SP_AS][SM_AS][SC_N][DP][CPU_C] = _op_mul_pas_mas_dp; | ||
83 | op_mul_span_funcs[SP_AN][SM_AS][SC_N][DP][CPU_C] = _op_mul_pan_mas_dp; | ||
84 | |||
85 | op_mul_span_funcs[SP][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_p_mas_dpan; | ||
86 | op_mul_span_funcs[SP_AS][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_pas_mas_dpan; | ||
87 | op_mul_span_funcs[SP_AN][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_pan_mas_dpan; | ||
88 | } | ||
89 | #endif | ||
90 | |||
91 | #ifdef BUILD_C | ||
92 | static void | ||
93 | _op_mul_pt_p_mas_dp(DATA32 s, DATA8 m, DATA32 c __UNUSED__, DATA32 *d) { | ||
94 | s = ~s; | ||
95 | s = ~MUL_SYM(m, s); | ||
96 | *d = MUL4_SYM(s, *d); | ||
97 | } | ||
98 | |||
99 | #define _op_mul_pt_pas_mas_dp _op_mul_pt_p_mas_dp | ||
100 | #define _op_mul_pt_pan_mas_dp _op_mul_pt_p_mas_dp | ||
101 | |||
102 | #define _op_mul_pt_p_mas_dpan _op_mul_pt_p_mas_dp | ||
103 | #define _op_mul_pt_pas_mas_dpan _op_mul_pt_p_mas_dp | ||
104 | #define _op_mul_pt_pan_mas_dpan _op_mul_pt_p_mas_dp | ||
105 | |||
106 | static void | ||
107 | init_mul_pixel_mask_pt_funcs_c(void) | ||
108 | { | ||
109 | op_mul_pt_funcs[SP][SM_AS][SC_N][DP][CPU_C] = _op_mul_pt_p_mas_dp; | ||
110 | op_mul_pt_funcs[SP_AS][SM_AS][SC_N][DP][CPU_C] = _op_mul_pt_pas_mas_dp; | ||
111 | op_mul_pt_funcs[SP_AN][SM_AS][SC_N][DP][CPU_C] = _op_mul_pt_pan_mas_dp; | ||
112 | |||
113 | op_mul_pt_funcs[SP][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_pt_p_mas_dpan; | ||
114 | op_mul_pt_funcs[SP_AS][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_pt_pas_mas_dpan; | ||
115 | op_mul_pt_funcs[SP_AN][SM_AS][SC_N][DP_AN][CPU_C] = _op_mul_pt_pan_mas_dpan; | ||
116 | } | ||
117 | #endif | ||
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 | ||
diff --git a/libraries/evas/src/lib/engines/common/evas_op_mul_main_.c b/libraries/evas/src/lib/engines/common/evas_op_mul_main_.c new file mode 100644 index 0000000..25fa932 --- /dev/null +++ b/libraries/evas/src/lib/engines/common/evas_op_mul_main_.c | |||
@@ -0,0 +1,308 @@ | |||
1 | #include "evas_common.h" | ||
2 | |||
3 | static RGBA_Gfx_Func op_mul_span_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; | ||
4 | static RGBA_Gfx_Pt_Func op_mul_pt_funcs[SP_LAST][SM_LAST][SC_LAST][DP_LAST][CPU_LAST]; | ||
5 | |||
6 | static void op_mul_init(void); | ||
7 | static void op_mul_shutdown(void); | ||
8 | |||
9 | static RGBA_Gfx_Func op_mul_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); | ||
10 | static RGBA_Gfx_Func op_mul_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); | ||
11 | static RGBA_Gfx_Func op_mul_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels); | ||
12 | static RGBA_Gfx_Func op_mul_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels); | ||
13 | static RGBA_Gfx_Func op_mul_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels); | ||
14 | |||
15 | static RGBA_Gfx_Pt_Func op_mul_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); | ||
16 | static RGBA_Gfx_Pt_Func op_mul_color_pt_get(DATA32 col, RGBA_Image *dst); | ||
17 | static RGBA_Gfx_Pt_Func op_mul_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst); | ||
18 | static RGBA_Gfx_Pt_Func op_mul_mask_color_pt_get(DATA32 col, RGBA_Image *dst); | ||
19 | static RGBA_Gfx_Pt_Func op_mul_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst); | ||
20 | |||
21 | static RGBA_Gfx_Compositor _composite_mul = { "mul", | ||
22 | op_mul_init, op_mul_shutdown, | ||
23 | op_mul_pixel_span_get, op_mul_color_span_get, | ||
24 | op_mul_pixel_color_span_get, op_mul_mask_color_span_get, | ||
25 | op_mul_pixel_mask_span_get, | ||
26 | op_mul_pixel_pt_get, op_mul_color_pt_get, | ||
27 | op_mul_pixel_color_pt_get, op_mul_mask_color_pt_get, | ||
28 | op_mul_pixel_mask_pt_get | ||
29 | }; | ||
30 | |||
31 | RGBA_Gfx_Compositor * | ||
32 | evas_common_gfx_compositor_mul_get(void) | ||
33 | { | ||
34 | return &(_composite_mul); | ||
35 | } | ||
36 | |||
37 | |||
38 | # include "./evas_op_mul/op_mul_pixel_.c" | ||
39 | # include "./evas_op_mul/op_mul_color_.c" | ||
40 | # include "./evas_op_mul/op_mul_pixel_color_.c" | ||
41 | # include "./evas_op_mul/op_mul_pixel_mask_.c" | ||
42 | # include "./evas_op_mul/op_mul_mask_color_.c" | ||
43 | //# include "./evas_op_mul/op_mul_pixel_mask_color_.c" | ||
44 | |||
45 | # include "./evas_op_mul/op_mul_pixel_i386.c" | ||
46 | # include "./evas_op_mul/op_mul_color_i386.c" | ||
47 | # include "./evas_op_mul/op_mul_pixel_color_i386.c" | ||
48 | # include "./evas_op_mul/op_mul_pixel_mask_i386.c" | ||
49 | # include "./evas_op_mul/op_mul_mask_color_i386.c" | ||
50 | // # include "./evas_op_mul/op_mul_pixel_mask_color_i386.c" | ||
51 | |||
52 | static void | ||
53 | op_mul_init(void) | ||
54 | { | ||
55 | memset(op_mul_span_funcs, 0, sizeof(op_mul_span_funcs)); | ||
56 | memset(op_mul_pt_funcs, 0, sizeof(op_mul_pt_funcs)); | ||
57 | #ifdef BUILD_MMX | ||
58 | init_mul_pixel_span_funcs_mmx(); | ||
59 | init_mul_pixel_color_span_funcs_mmx(); | ||
60 | init_mul_pixel_mask_span_funcs_mmx(); | ||
61 | init_mul_color_span_funcs_mmx(); | ||
62 | init_mul_mask_color_span_funcs_mmx(); | ||
63 | |||
64 | init_mul_pixel_pt_funcs_mmx(); | ||
65 | init_mul_pixel_color_pt_funcs_mmx(); | ||
66 | init_mul_pixel_mask_pt_funcs_mmx(); | ||
67 | init_mul_color_pt_funcs_mmx(); | ||
68 | init_mul_mask_color_pt_funcs_mmx(); | ||
69 | #endif | ||
70 | #ifdef BUILD_C | ||
71 | init_mul_pixel_span_funcs_c(); | ||
72 | init_mul_pixel_color_span_funcs_c(); | ||
73 | init_mul_pixel_mask_span_funcs_c(); | ||
74 | init_mul_color_span_funcs_c(); | ||
75 | init_mul_mask_color_span_funcs_c(); | ||
76 | |||
77 | init_mul_pixel_pt_funcs_c(); | ||
78 | init_mul_pixel_color_pt_funcs_c(); | ||
79 | init_mul_pixel_mask_pt_funcs_c(); | ||
80 | init_mul_color_pt_funcs_c(); | ||
81 | init_mul_mask_color_pt_funcs_c(); | ||
82 | #endif | ||
83 | } | ||
84 | |||
85 | static void | ||
86 | op_mul_shutdown(void) | ||
87 | { | ||
88 | } | ||
89 | |||
90 | static RGBA_Gfx_Func | ||
91 | mul_gfx_span_func_cpu(int s, int m, int c, int d) | ||
92 | { | ||
93 | RGBA_Gfx_Func func = NULL; | ||
94 | int cpu = CPU_N; | ||
95 | #ifdef BUILD_MMX | ||
96 | if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) | ||
97 | { | ||
98 | cpu = CPU_MMX; | ||
99 | func = op_mul_span_funcs[s][m][c][d][cpu]; | ||
100 | if (func) return func; | ||
101 | } | ||
102 | #endif | ||
103 | #ifdef BUILD_C | ||
104 | cpu = CPU_C; | ||
105 | func = op_mul_span_funcs[s][m][c][d][cpu]; | ||
106 | if (func) return func; | ||
107 | #endif | ||
108 | return func; | ||
109 | } | ||
110 | |||
111 | static RGBA_Gfx_Func | ||
112 | op_mul_pixel_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) | ||
113 | { | ||
114 | int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; | ||
115 | |||
116 | if (src && src->cache_entry.flags.alpha) | ||
117 | { | ||
118 | dst->cache_entry.flags.alpha = 1; | ||
119 | s = SP; | ||
120 | } | ||
121 | if (dst && dst->cache_entry.flags.alpha) | ||
122 | d = DP; | ||
123 | return mul_gfx_span_func_cpu(s, m, c, d); | ||
124 | } | ||
125 | |||
126 | static RGBA_Gfx_Func | ||
127 | op_mul_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) | ||
128 | { | ||
129 | int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; | ||
130 | |||
131 | if ((col >> 24) < 255) | ||
132 | { | ||
133 | if (dst) | ||
134 | dst->cache_entry.flags.alpha = 1; | ||
135 | c = SC; | ||
136 | } | ||
137 | if (col == (col | 0x00ffffff)) | ||
138 | c = SC_AA; | ||
139 | if (col == 0xffffffff) | ||
140 | c = SC_N; | ||
141 | if (dst && dst->cache_entry.flags.alpha) | ||
142 | d = DP; | ||
143 | return mul_gfx_span_func_cpu(s, m, c, d); | ||
144 | } | ||
145 | |||
146 | static RGBA_Gfx_Func | ||
147 | op_mul_pixel_color_span_get(RGBA_Image *src, DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) | ||
148 | { | ||
149 | int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; | ||
150 | |||
151 | if (src && src->cache_entry.flags.alpha) | ||
152 | { | ||
153 | if (dst) | ||
154 | dst->cache_entry.flags.alpha = 1; | ||
155 | s = SP; | ||
156 | } | ||
157 | if ((col >> 24) < 255) | ||
158 | { | ||
159 | if (dst) | ||
160 | dst->cache_entry.flags.alpha = 1; | ||
161 | c = SC; | ||
162 | } | ||
163 | if (col == (col | 0x00ffffff)) | ||
164 | c = SC_AA; | ||
165 | if (col == 0xffffffff) | ||
166 | c = SC_N; | ||
167 | if (dst && dst->cache_entry.flags.alpha) | ||
168 | d = DP; | ||
169 | return mul_gfx_span_func_cpu(s, m, c, d); | ||
170 | } | ||
171 | |||
172 | static RGBA_Gfx_Func | ||
173 | op_mul_mask_color_span_get(DATA32 col, RGBA_Image *dst, int pixels __UNUSED__) | ||
174 | { | ||
175 | int s = SP_N, m = SM_AS, c = SC_AN, d = DP; | ||
176 | |||
177 | if (dst) | ||
178 | dst->cache_entry.flags.alpha = 1; | ||
179 | if ((col >> 24) < 255) | ||
180 | c = SC; | ||
181 | if (col == (col | 0x00ffffff)) | ||
182 | c = SC_AA; | ||
183 | if (col == 0xffffffff) | ||
184 | c = SC_N; | ||
185 | return mul_gfx_span_func_cpu(s, m, c, d); | ||
186 | } | ||
187 | |||
188 | static RGBA_Gfx_Func | ||
189 | op_mul_pixel_mask_span_get(RGBA_Image *src, RGBA_Image *dst, int pixels __UNUSED__) | ||
190 | { | ||
191 | int s = SP_AN, m = SM_AS, c = SC_N, d = DP; | ||
192 | |||
193 | if (dst) | ||
194 | dst->cache_entry.flags.alpha = 1; | ||
195 | if (src && src->cache_entry.flags.alpha) | ||
196 | s = SP; | ||
197 | return mul_gfx_span_func_cpu(s, m, c, d); | ||
198 | } | ||
199 | |||
200 | static RGBA_Gfx_Pt_Func | ||
201 | mul_gfx_pt_func_cpu(int s, int m, int c, int d) | ||
202 | { | ||
203 | RGBA_Gfx_Pt_Func func = NULL; | ||
204 | int cpu = CPU_N; | ||
205 | #ifdef BUILD_MMX | ||
206 | if (evas_common_cpu_has_feature(CPU_FEATURE_MMX)) | ||
207 | { | ||
208 | cpu = CPU_MMX; | ||
209 | func = op_mul_pt_funcs[s][m][c][d][cpu]; | ||
210 | if (func) return func; | ||
211 | } | ||
212 | #endif | ||
213 | #ifdef BUILD_C | ||
214 | cpu = CPU_C; | ||
215 | func = op_mul_pt_funcs[s][m][c][d][cpu]; | ||
216 | if (func) return func; | ||
217 | #endif | ||
218 | return func; | ||
219 | } | ||
220 | |||
221 | static RGBA_Gfx_Pt_Func | ||
222 | op_mul_pixel_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) | ||
223 | { | ||
224 | int s = SP_AN, m = SM_N, c = SC_N, d = DP_AN; | ||
225 | |||
226 | if (src_flags.alpha) | ||
227 | { | ||
228 | dst->cache_entry.flags.alpha = 1; | ||
229 | s = SP; | ||
230 | } | ||
231 | if (dst && dst->cache_entry.flags.alpha) | ||
232 | d = DP; | ||
233 | return mul_gfx_pt_func_cpu(s, m, c, d); | ||
234 | } | ||
235 | |||
236 | static RGBA_Gfx_Pt_Func | ||
237 | op_mul_color_pt_get(DATA32 col, RGBA_Image *dst) | ||
238 | { | ||
239 | int s = SP_N, m = SM_N, c = SC_AN, d = DP_AN; | ||
240 | |||
241 | if ((col >> 24) < 255) | ||
242 | { | ||
243 | if (dst) | ||
244 | dst->cache_entry.flags.alpha = 1; | ||
245 | c = SC; | ||
246 | } | ||
247 | if (col == (col | 0x00ffffff)) | ||
248 | c = SC_AA; | ||
249 | if (col == 0xffffffff) | ||
250 | c = SC_N; | ||
251 | if (dst && dst->cache_entry.flags.alpha) | ||
252 | d = DP; | ||
253 | return mul_gfx_pt_func_cpu(s, m, c, d); | ||
254 | } | ||
255 | |||
256 | static RGBA_Gfx_Pt_Func | ||
257 | op_mul_pixel_color_pt_get(Image_Entry_Flags src_flags, DATA32 col, RGBA_Image *dst) | ||
258 | { | ||
259 | int s = SP_AN, m = SM_N, c = SC_AN, d = DP_AN; | ||
260 | |||
261 | if (src_flags.alpha) | ||
262 | { | ||
263 | if (dst) | ||
264 | dst->cache_entry.flags.alpha = 1; | ||
265 | s = SP; | ||
266 | } | ||
267 | if ((col >> 24) < 255) | ||
268 | { | ||
269 | if (dst) | ||
270 | dst->cache_entry.flags.alpha = 1; | ||
271 | c = SC; | ||
272 | } | ||
273 | if (col == (col | 0x00ffffff)) | ||
274 | c = SC_AA; | ||
275 | if (col == 0xffffffff) | ||
276 | c = SC_N; | ||
277 | if (dst && dst->cache_entry.flags.alpha) | ||
278 | d = DP; | ||
279 | return mul_gfx_pt_func_cpu(s, m, c, d); | ||
280 | } | ||
281 | |||
282 | static RGBA_Gfx_Pt_Func | ||
283 | op_mul_mask_color_pt_get(DATA32 col, RGBA_Image *dst) | ||
284 | { | ||
285 | int s = SP_N, m = SM_AS, c = SC_AN, d = DP; | ||
286 | |||
287 | if (dst) | ||
288 | dst->cache_entry.flags.alpha = 1; | ||
289 | if ((col >> 24) < 255) | ||
290 | c = SC; | ||
291 | if (col == (col | 0x00ffffff)) | ||
292 | c = SC_AA; | ||
293 | if (col == 0xffffffff) | ||
294 | c = SC_N; | ||
295 | return mul_gfx_pt_func_cpu(s, m, c, d); | ||
296 | } | ||
297 | |||
298 | static RGBA_Gfx_Pt_Func | ||
299 | op_mul_pixel_mask_pt_get(Image_Entry_Flags src_flags, RGBA_Image *dst) | ||
300 | { | ||
301 | int s = SP_AN, m = SM_AS, c = SC_N, d = DP; | ||
302 | |||
303 | if (dst) | ||
304 | dst->cache_entry.flags.alpha = 1; | ||
305 | if (src_flags.alpha) | ||
306 | s = SP; | ||
307 | return mul_gfx_pt_func_cpu(s, m, c, d); | ||
308 | } | ||