diff options
Diffstat (limited to 'libraries/eina/src/modules/mp/fixed_bitmap')
3 files changed, 942 insertions, 0 deletions
diff --git a/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.am b/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.am new file mode 100644 index 0000000..caf239e --- /dev/null +++ b/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.am | |||
@@ -0,0 +1,29 @@ | |||
1 | MAINTAINERCLEANFILES = Makefile.in | ||
2 | |||
3 | AM_CPPFLAGS = \ | ||
4 | -I. \ | ||
5 | -I$(top_srcdir)/src/include \ | ||
6 | -I$(top_builddir)/src/include \ | ||
7 | -I$(top_srcdir)/src/lib \ | ||
8 | -I$(top_builddir)/src/lib \ | ||
9 | @EINA_CPPFLAGS@ \ | ||
10 | @EFL_EINA_BUILD@ | ||
11 | |||
12 | controllerdir = $(libdir)/eina/modules/mp/fixed_bitmap/$(MODULE_ARCH) | ||
13 | controller_LTLIBRARIES = module.la | ||
14 | |||
15 | module_la_SOURCES = \ | ||
16 | eina_fixed_bitmap.c | ||
17 | |||
18 | module_la_CFLAGS = @EINA_CFLAGS@ | ||
19 | module_la_LIBADD = $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ | ||
20 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
21 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
22 | |||
23 | install-data-hook: | ||
24 | rm -f $(DESTDIR)$(controllerdir)/$(controller_LTLIBRARIES) | ||
25 | uninstall-hook: | ||
26 | rm -f $(DESTDIR)$(controllerdir)/module.* | ||
27 | |||
28 | clean-local: | ||
29 | rm -rf *.gcno | ||
diff --git a/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.in b/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.in new file mode 100644 index 0000000..c1541fc --- /dev/null +++ b/libraries/eina/src/modules/mp/fixed_bitmap/Makefile.in | |||
@@ -0,0 +1,643 @@ | |||
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 | |||
18 | VPATH = @srcdir@ | ||
19 | pkgdatadir = $(datadir)/@PACKAGE@ | ||
20 | pkgincludedir = $(includedir)/@PACKAGE@ | ||
21 | pkglibdir = $(libdir)/@PACKAGE@ | ||
22 | pkglibexecdir = $(libexecdir)/@PACKAGE@ | ||
23 | am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd | ||
24 | install_sh_DATA = $(install_sh) -c -m 644 | ||
25 | install_sh_PROGRAM = $(install_sh) -c | ||
26 | install_sh_SCRIPT = $(install_sh) -c | ||
27 | INSTALL_HEADER = $(INSTALL_DATA) | ||
28 | transform = $(program_transform_name) | ||
29 | NORMAL_INSTALL = : | ||
30 | PRE_INSTALL = : | ||
31 | POST_INSTALL = : | ||
32 | NORMAL_UNINSTALL = : | ||
33 | PRE_UNINSTALL = : | ||
34 | POST_UNINSTALL = : | ||
35 | build_triplet = @build@ | ||
36 | host_triplet = @host@ | ||
37 | subdir = src/modules/mp/fixed_bitmap | ||
38 | DIST_COMMON = $(srcdir)/Makefile.am $(srcdir)/Makefile.in | ||
39 | ACLOCAL_M4 = $(top_srcdir)/aclocal.m4 | ||
40 | am__aclocal_m4_deps = $(top_srcdir)/m4/efl_attribute.m4 \ | ||
41 | $(top_srcdir)/m4/efl_benchmark.m4 \ | ||
42 | $(top_srcdir)/m4/efl_compiler_flag.m4 \ | ||
43 | $(top_srcdir)/m4/efl_coverage.m4 $(top_srcdir)/m4/efl_cpu.m4 \ | ||
44 | $(top_srcdir)/m4/efl_doxygen.m4 \ | ||
45 | $(top_srcdir)/m4/efl_examples.m4 \ | ||
46 | $(top_srcdir)/m4/efl_fnmatch.m4 \ | ||
47 | $(top_srcdir)/m4/efl_path_max.m4 $(top_srcdir)/m4/efl_tests.m4 \ | ||
48 | $(top_srcdir)/m4/efl_threads.m4 \ | ||
49 | $(top_srcdir)/m4/efl_voltron.m4 $(top_srcdir)/m4/eina_bench.m4 \ | ||
50 | $(top_srcdir)/m4/eina_check.m4 $(top_srcdir)/m4/libtool.m4 \ | ||
51 | $(top_srcdir)/m4/ltoptions.m4 $(top_srcdir)/m4/ltsugar.m4 \ | ||
52 | $(top_srcdir)/m4/ltversion.m4 $(top_srcdir)/m4/lt~obsolete.m4 \ | ||
53 | $(top_srcdir)/acinclude.m4 $(top_srcdir)/configure.ac | ||
54 | am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \ | ||
55 | $(ACLOCAL_M4) | ||
56 | mkinstalldirs = $(install_sh) -d | ||
57 | CONFIG_HEADER = $(top_builddir)/config.h | ||
58 | CONFIG_CLEAN_FILES = | ||
59 | CONFIG_CLEAN_VPATH_FILES = | ||
60 | am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; | ||
61 | am__vpath_adj = case $$p in \ | ||
62 | $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \ | ||
63 | *) f=$$p;; \ | ||
64 | esac; | ||
65 | am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`; | ||
66 | am__install_max = 40 | ||
67 | am__nobase_strip_setup = \ | ||
68 | srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'` | ||
69 | am__nobase_strip = \ | ||
70 | for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||" | ||
71 | am__nobase_list = $(am__nobase_strip_setup); \ | ||
72 | for p in $$list; do echo "$$p $$p"; done | \ | ||
73 | sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \ | ||
74 | $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \ | ||
75 | if (++n[$$2] == $(am__install_max)) \ | ||
76 | { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \ | ||
77 | END { for (dir in files) print dir, files[dir] }' | ||
78 | am__base_list = \ | ||
79 | sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \ | ||
80 | sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | ||
81 | am__installdirs = "$(DESTDIR)$(controllerdir)" | ||
82 | LTLIBRARIES = $(controller_LTLIBRARIES) | ||
83 | module_la_DEPENDENCIES = $(top_builddir)/src/lib/libeina.la | ||
84 | am_module_la_OBJECTS = module_la-eina_fixed_bitmap.lo | ||
85 | module_la_OBJECTS = $(am_module_la_OBJECTS) | ||
86 | AM_V_lt = $(am__v_lt_$(V)) | ||
87 | am__v_lt_ = $(am__v_lt_$(AM_DEFAULT_VERBOSITY)) | ||
88 | am__v_lt_0 = --silent | ||
89 | module_la_LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC \ | ||
90 | $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=link $(CCLD) \ | ||
91 | $(module_la_CFLAGS) $(CFLAGS) $(module_la_LDFLAGS) $(LDFLAGS) \ | ||
92 | -o $@ | ||
93 | DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir) | ||
94 | depcomp = $(SHELL) $(top_srcdir)/depcomp | ||
95 | am__depfiles_maybe = depfiles | ||
96 | am__mv = mv -f | ||
97 | COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \ | ||
98 | $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS) | ||
99 | LTCOMPILE = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
100 | $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) \ | ||
101 | $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \ | ||
102 | $(AM_CFLAGS) $(CFLAGS) | ||
103 | AM_V_CC = $(am__v_CC_$(V)) | ||
104 | am__v_CC_ = $(am__v_CC_$(AM_DEFAULT_VERBOSITY)) | ||
105 | am__v_CC_0 = @echo " CC " $@; | ||
106 | AM_V_at = $(am__v_at_$(V)) | ||
107 | am__v_at_ = $(am__v_at_$(AM_DEFAULT_VERBOSITY)) | ||
108 | am__v_at_0 = @ | ||
109 | CCLD = $(CC) | ||
110 | LINK = $(LIBTOOL) $(AM_V_lt) --tag=CC $(AM_LIBTOOLFLAGS) \ | ||
111 | $(LIBTOOLFLAGS) --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \ | ||
112 | $(AM_LDFLAGS) $(LDFLAGS) -o $@ | ||
113 | AM_V_CCLD = $(am__v_CCLD_$(V)) | ||
114 | am__v_CCLD_ = $(am__v_CCLD_$(AM_DEFAULT_VERBOSITY)) | ||
115 | am__v_CCLD_0 = @echo " CCLD " $@; | ||
116 | AM_V_GEN = $(am__v_GEN_$(V)) | ||
117 | am__v_GEN_ = $(am__v_GEN_$(AM_DEFAULT_VERBOSITY)) | ||
118 | am__v_GEN_0 = @echo " GEN " $@; | ||
119 | SOURCES = $(module_la_SOURCES) | ||
120 | DIST_SOURCES = $(module_la_SOURCES) | ||
121 | ETAGS = etags | ||
122 | CTAGS = ctags | ||
123 | DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) | ||
124 | ACLOCAL = @ACLOCAL@ | ||
125 | ALLOCA = @ALLOCA@ | ||
126 | AMTAR = @AMTAR@ | ||
127 | AM_DEFAULT_VERBOSITY = @AM_DEFAULT_VERBOSITY@ | ||
128 | AR = @AR@ | ||
129 | AS = @AS@ | ||
130 | AUTOCONF = @AUTOCONF@ | ||
131 | AUTOHEADER = @AUTOHEADER@ | ||
132 | AUTOMAKE = @AUTOMAKE@ | ||
133 | AWK = @AWK@ | ||
134 | CC = @CC@ | ||
135 | CCDEPMODE = @CCDEPMODE@ | ||
136 | CFLAGS = @CFLAGS@ | ||
137 | CHECK_CFLAGS = @CHECK_CFLAGS@ | ||
138 | CHECK_LIBS = @CHECK_LIBS@ | ||
139 | CPP = @CPP@ | ||
140 | CPPFLAGS = @CPPFLAGS@ | ||
141 | CXX = @CXX@ | ||
142 | CXXCPP = @CXXCPP@ | ||
143 | CXXDEPMODE = @CXXDEPMODE@ | ||
144 | CXXFLAGS = @CXXFLAGS@ | ||
145 | CYGPATH_W = @CYGPATH_W@ | ||
146 | DEFS = @DEFS@ | ||
147 | DEPDIR = @DEPDIR@ | ||
148 | DLLTOOL = @DLLTOOL@ | ||
149 | DSYMUTIL = @DSYMUTIL@ | ||
150 | DUMPBIN = @DUMPBIN@ | ||
151 | ECHO_C = @ECHO_C@ | ||
152 | ECHO_N = @ECHO_N@ | ||
153 | ECHO_T = @ECHO_T@ | ||
154 | ECORE_EVAS_CFLAGS = @ECORE_EVAS_CFLAGS@ | ||
155 | ECORE_EVAS_LIBS = @ECORE_EVAS_LIBS@ | ||
156 | EFL_COVERAGE_CFLAGS = @EFL_COVERAGE_CFLAGS@ | ||
157 | EFL_COVERAGE_LIBS = @EFL_COVERAGE_LIBS@ | ||
158 | EFL_EINA_BUILD = @EFL_EINA_BUILD@ | ||
159 | EFL_FNMATCH_LIBS = @EFL_FNMATCH_LIBS@ | ||
160 | EFL_PTHREAD_CFLAGS = @EFL_PTHREAD_CFLAGS@ | ||
161 | EFL_PTHREAD_LIBS = @EFL_PTHREAD_LIBS@ | ||
162 | EFL_SIMD_FLAGS = @EFL_SIMD_FLAGS@ | ||
163 | EGREP = @EGREP@ | ||
164 | EINA_CFLAGS = @EINA_CFLAGS@ | ||
165 | EINA_CONFIGURE_DEFAULT_MEMPOOL = @EINA_CONFIGURE_DEFAULT_MEMPOOL@ | ||
166 | EINA_CONFIGURE_HAVE_DEBUG_THREADS = @EINA_CONFIGURE_HAVE_DEBUG_THREADS@ | ||
167 | EINA_CONFIGURE_HAVE_INTTYPES_H = @EINA_CONFIGURE_HAVE_INTTYPES_H@ | ||
168 | EINA_CONFIGURE_HAVE_ON_OFF_THREADS = @EINA_CONFIGURE_HAVE_ON_OFF_THREADS@ | ||
169 | EINA_CONFIGURE_HAVE_STDINT_H = @EINA_CONFIGURE_HAVE_STDINT_H@ | ||
170 | EINA_CONFIGURE_HAVE_THREADS = @EINA_CONFIGURE_HAVE_THREADS@ | ||
171 | EINA_CONFIGURE_MAGIC_DEBUG = @EINA_CONFIGURE_MAGIC_DEBUG@ | ||
172 | EINA_CONFIGURE_SAFETY_CHECKS = @EINA_CONFIGURE_SAFETY_CHECKS@ | ||
173 | EINA_CPPFLAGS = @EINA_CPPFLAGS@ | ||
174 | EINA_LIBS = @EINA_LIBS@ | ||
175 | EINA_SIZEOF_WCHAR_T = @EINA_SIZEOF_WCHAR_T@ | ||
176 | EMEMOA_CFLAGS = @EMEMOA_CFLAGS@ | ||
177 | EMEMOA_LIBS = @EMEMOA_LIBS@ | ||
178 | ESCAPE_CFLAGS = @ESCAPE_CFLAGS@ | ||
179 | ESCAPE_LIBS = @ESCAPE_LIBS@ | ||
180 | EVIL_CFLAGS = @EVIL_CFLAGS@ | ||
181 | EVIL_LIBS = @EVIL_LIBS@ | ||
182 | EXEEXT = @EXEEXT@ | ||
183 | FGREP = @FGREP@ | ||
184 | GLIB_CFLAGS = @GLIB_CFLAGS@ | ||
185 | GLIB_LIBS = @GLIB_LIBS@ | ||
186 | GREP = @GREP@ | ||
187 | INSTALL = @INSTALL@ | ||
188 | INSTALL_DATA = @INSTALL_DATA@ | ||
189 | INSTALL_PROGRAM = @INSTALL_PROGRAM@ | ||
190 | INSTALL_SCRIPT = @INSTALL_SCRIPT@ | ||
191 | INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@ | ||
192 | LD = @LD@ | ||
193 | LDFLAGS = @LDFLAGS@ | ||
194 | LIBOBJS = @LIBOBJS@ | ||
195 | LIBS = @LIBS@ | ||
196 | LIBTOOL = @LIBTOOL@ | ||
197 | LIPO = @LIPO@ | ||
198 | LN_S = @LN_S@ | ||
199 | LTLIBOBJS = @LTLIBOBJS@ | ||
200 | MAKEINFO = @MAKEINFO@ | ||
201 | MKDIR_P = @MKDIR_P@ | ||
202 | MODULE_ARCH = @MODULE_ARCH@ | ||
203 | NM = @NM@ | ||
204 | NMEDIT = @NMEDIT@ | ||
205 | OBJDUMP = @OBJDUMP@ | ||
206 | OBJEXT = @OBJEXT@ | ||
207 | OTOOL = @OTOOL@ | ||
208 | OTOOL64 = @OTOOL64@ | ||
209 | PACKAGE = @PACKAGE@ | ||
210 | PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@ | ||
211 | PACKAGE_NAME = @PACKAGE_NAME@ | ||
212 | PACKAGE_STRING = @PACKAGE_STRING@ | ||
213 | PACKAGE_TARNAME = @PACKAGE_TARNAME@ | ||
214 | PACKAGE_URL = @PACKAGE_URL@ | ||
215 | PACKAGE_VERSION = @PACKAGE_VERSION@ | ||
216 | PATH_SEPARATOR = @PATH_SEPARATOR@ | ||
217 | PKG_CONFIG = @PKG_CONFIG@ | ||
218 | PKG_CONFIG_LIBDIR = @PKG_CONFIG_LIBDIR@ | ||
219 | PKG_CONFIG_PATH = @PKG_CONFIG_PATH@ | ||
220 | RANLIB = @RANLIB@ | ||
221 | SED = @SED@ | ||
222 | SET_MAKE = @SET_MAKE@ | ||
223 | SHELL = @SHELL@ | ||
224 | STRIP = @STRIP@ | ||
225 | VALGRIND_CFLAGS = @VALGRIND_CFLAGS@ | ||
226 | VALGRIND_LIBS = @VALGRIND_LIBS@ | ||
227 | VERSION = @VERSION@ | ||
228 | VMAJ = @VMAJ@ | ||
229 | abs_builddir = @abs_builddir@ | ||
230 | abs_srcdir = @abs_srcdir@ | ||
231 | abs_top_builddir = @abs_top_builddir@ | ||
232 | abs_top_srcdir = @abs_top_srcdir@ | ||
233 | ac_ct_CC = @ac_ct_CC@ | ||
234 | ac_ct_CXX = @ac_ct_CXX@ | ||
235 | ac_ct_DUMPBIN = @ac_ct_DUMPBIN@ | ||
236 | am__include = @am__include@ | ||
237 | am__leading_dot = @am__leading_dot@ | ||
238 | am__quote = @am__quote@ | ||
239 | am__tar = @am__tar@ | ||
240 | am__untar = @am__untar@ | ||
241 | bindir = @bindir@ | ||
242 | build = @build@ | ||
243 | build_alias = @build_alias@ | ||
244 | build_cpu = @build_cpu@ | ||
245 | build_os = @build_os@ | ||
246 | build_vendor = @build_vendor@ | ||
247 | builddir = @builddir@ | ||
248 | datadir = @datadir@ | ||
249 | datarootdir = @datarootdir@ | ||
250 | dlopen_libs = @dlopen_libs@ | ||
251 | docdir = @docdir@ | ||
252 | dvidir = @dvidir@ | ||
253 | efl_doxygen = @efl_doxygen@ | ||
254 | efl_have_doxygen = @efl_have_doxygen@ | ||
255 | exec_prefix = @exec_prefix@ | ||
256 | have_lcov = @have_lcov@ | ||
257 | host = @host@ | ||
258 | host_alias = @host_alias@ | ||
259 | host_cpu = @host_cpu@ | ||
260 | host_os = @host_os@ | ||
261 | host_vendor = @host_vendor@ | ||
262 | htmldir = @htmldir@ | ||
263 | iconv_libs = @iconv_libs@ | ||
264 | includedir = @includedir@ | ||
265 | infodir = @infodir@ | ||
266 | install_sh = @install_sh@ | ||
267 | libdir = @libdir@ | ||
268 | libexecdir = @libexecdir@ | ||
269 | localedir = @localedir@ | ||
270 | localstatedir = @localstatedir@ | ||
271 | lt_ECHO = @lt_ECHO@ | ||
272 | lt_enable_auto_import = @lt_enable_auto_import@ | ||
273 | mandir = @mandir@ | ||
274 | mkdir_p = @mkdir_p@ | ||
275 | oldincludedir = @oldincludedir@ | ||
276 | pdfdir = @pdfdir@ | ||
277 | pkgconfig_requires_private = @pkgconfig_requires_private@ | ||
278 | prefix = @prefix@ | ||
279 | program_transform_name = @program_transform_name@ | ||
280 | psdir = @psdir@ | ||
281 | release_info = @release_info@ | ||
282 | requirement_eina = @requirement_eina@ | ||
283 | rt_libs = @rt_libs@ | ||
284 | sbindir = @sbindir@ | ||
285 | sharedstatedir = @sharedstatedir@ | ||
286 | srcdir = @srcdir@ | ||
287 | sysconfdir = @sysconfdir@ | ||
288 | target_alias = @target_alias@ | ||
289 | top_build_prefix = @top_build_prefix@ | ||
290 | top_builddir = @top_builddir@ | ||
291 | top_srcdir = @top_srcdir@ | ||
292 | version_info = @version_info@ | ||
293 | MAINTAINERCLEANFILES = Makefile.in | ||
294 | AM_CPPFLAGS = \ | ||
295 | -I. \ | ||
296 | -I$(top_srcdir)/src/include \ | ||
297 | -I$(top_builddir)/src/include \ | ||
298 | -I$(top_srcdir)/src/lib \ | ||
299 | -I$(top_builddir)/src/lib \ | ||
300 | @EINA_CPPFLAGS@ \ | ||
301 | @EFL_EINA_BUILD@ | ||
302 | |||
303 | controllerdir = $(libdir)/eina/modules/mp/fixed_bitmap/$(MODULE_ARCH) | ||
304 | controller_LTLIBRARIES = module.la | ||
305 | module_la_SOURCES = \ | ||
306 | eina_fixed_bitmap.c | ||
307 | |||
308 | module_la_CFLAGS = @EINA_CFLAGS@ | ||
309 | module_la_LIBADD = $(top_builddir)/src/lib/libeina.la @EINA_LIBS@ | ||
310 | module_la_LDFLAGS = -no-undefined @lt_enable_auto_import@ -module -avoid-version | ||
311 | module_la_LIBTOOLFLAGS = --tag=disable-static | ||
312 | all: all-am | ||
313 | |||
314 | .SUFFIXES: | ||
315 | .SUFFIXES: .c .lo .o .obj | ||
316 | $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) | ||
317 | @for dep in $?; do \ | ||
318 | case '$(am__configure_deps)' in \ | ||
319 | *$$dep*) \ | ||
320 | ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \ | ||
321 | && { if test -f $@; then exit 0; else break; fi; }; \ | ||
322 | exit 1;; \ | ||
323 | esac; \ | ||
324 | done; \ | ||
325 | echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/modules/mp/fixed_bitmap/Makefile'; \ | ||
326 | $(am__cd) $(top_srcdir) && \ | ||
327 | $(AUTOMAKE) --gnu src/modules/mp/fixed_bitmap/Makefile | ||
328 | .PRECIOUS: Makefile | ||
329 | Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status | ||
330 | @case '$?' in \ | ||
331 | *config.status*) \ | ||
332 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh;; \ | ||
333 | *) \ | ||
334 | echo ' cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe)'; \ | ||
335 | cd $(top_builddir) && $(SHELL) ./config.status $(subdir)/$@ $(am__depfiles_maybe);; \ | ||
336 | esac; | ||
337 | |||
338 | $(top_builddir)/config.status: $(top_srcdir)/configure $(CONFIG_STATUS_DEPENDENCIES) | ||
339 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
340 | |||
341 | $(top_srcdir)/configure: $(am__configure_deps) | ||
342 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
343 | $(ACLOCAL_M4): $(am__aclocal_m4_deps) | ||
344 | cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh | ||
345 | $(am__aclocal_m4_deps): | ||
346 | install-controllerLTLIBRARIES: $(controller_LTLIBRARIES) | ||
347 | @$(NORMAL_INSTALL) | ||
348 | test -z "$(controllerdir)" || $(MKDIR_P) "$(DESTDIR)$(controllerdir)" | ||
349 | @list='$(controller_LTLIBRARIES)'; test -n "$(controllerdir)" || list=; \ | ||
350 | list2=; for p in $$list; do \ | ||
351 | if test -f $$p; then \ | ||
352 | list2="$$list2 $$p"; \ | ||
353 | else :; fi; \ | ||
354 | done; \ | ||
355 | test -z "$$list2" || { \ | ||
356 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 '$(DESTDIR)$(controllerdir)'"; \ | ||
357 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL) $(INSTALL_STRIP_FLAG) $$list2 "$(DESTDIR)$(controllerdir)"; \ | ||
358 | } | ||
359 | |||
360 | uninstall-controllerLTLIBRARIES: | ||
361 | @$(NORMAL_UNINSTALL) | ||
362 | @list='$(controller_LTLIBRARIES)'; test -n "$(controllerdir)" || list=; \ | ||
363 | for p in $$list; do \ | ||
364 | $(am__strip_dir) \ | ||
365 | echo " $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f '$(DESTDIR)$(controllerdir)/$$f'"; \ | ||
366 | $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=uninstall rm -f "$(DESTDIR)$(controllerdir)/$$f"; \ | ||
367 | done | ||
368 | |||
369 | clean-controllerLTLIBRARIES: | ||
370 | -test -z "$(controller_LTLIBRARIES)" || rm -f $(controller_LTLIBRARIES) | ||
371 | @list='$(controller_LTLIBRARIES)'; for p in $$list; do \ | ||
372 | dir="`echo $$p | sed -e 's|/[^/]*$$||'`"; \ | ||
373 | test "$$dir" != "$$p" || dir=.; \ | ||
374 | echo "rm -f \"$${dir}/so_locations\""; \ | ||
375 | rm -f "$${dir}/so_locations"; \ | ||
376 | done | ||
377 | module.la: $(module_la_OBJECTS) $(module_la_DEPENDENCIES) | ||
378 | $(AM_V_CCLD)$(module_la_LINK) -rpath $(controllerdir) $(module_la_OBJECTS) $(module_la_LIBADD) $(LIBS) | ||
379 | |||
380 | mostlyclean-compile: | ||
381 | -rm -f *.$(OBJEXT) | ||
382 | |||
383 | distclean-compile: | ||
384 | -rm -f *.tab.c | ||
385 | |||
386 | @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/module_la-eina_fixed_bitmap.Plo@am__quote@ | ||
387 | |||
388 | .c.o: | ||
389 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
390 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
391 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
392 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
393 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
394 | @am__fastdepCC_FALSE@ $(COMPILE) -c $< | ||
395 | |||
396 | .c.obj: | ||
397 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` | ||
398 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po | ||
399 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
400 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ | ||
401 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
402 | @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'` | ||
403 | |||
404 | .c.lo: | ||
405 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< | ||
406 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo | ||
407 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
408 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@ | ||
409 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
410 | @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $< | ||
411 | |||
412 | module_la-eina_fixed_bitmap.lo: eina_fixed_bitmap.c | ||
413 | @am__fastdepCC_TRUE@ $(AM_V_CC)$(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(module_la_CFLAGS) $(CFLAGS) -MT module_la-eina_fixed_bitmap.lo -MD -MP -MF $(DEPDIR)/module_la-eina_fixed_bitmap.Tpo -c -o module_la-eina_fixed_bitmap.lo `test -f 'eina_fixed_bitmap.c' || echo '$(srcdir)/'`eina_fixed_bitmap.c | ||
414 | @am__fastdepCC_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/module_la-eina_fixed_bitmap.Tpo $(DEPDIR)/module_la-eina_fixed_bitmap.Plo | ||
415 | @am__fastdepCC_FALSE@ $(AM_V_CC) @AM_BACKSLASH@ | ||
416 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='eina_fixed_bitmap.c' object='module_la-eina_fixed_bitmap.lo' libtool=yes @AMDEPBACKSLASH@ | ||
417 | @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@ | ||
418 | @am__fastdepCC_FALSE@ $(LIBTOOL) $(AM_V_lt) --tag=CC $(module_la_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(module_la_CFLAGS) $(CFLAGS) -c -o module_la-eina_fixed_bitmap.lo `test -f 'eina_fixed_bitmap.c' || echo '$(srcdir)/'`eina_fixed_bitmap.c | ||
419 | |||
420 | mostlyclean-libtool: | ||
421 | -rm -f *.lo | ||
422 | |||
423 | clean-libtool: | ||
424 | -rm -rf .libs _libs | ||
425 | |||
426 | ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) | ||
427 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
428 | unique=`for i in $$list; do \ | ||
429 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
430 | done | \ | ||
431 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
432 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
433 | mkid -fID $$unique | ||
434 | tags: TAGS | ||
435 | |||
436 | TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
437 | $(TAGS_FILES) $(LISP) | ||
438 | set x; \ | ||
439 | here=`pwd`; \ | ||
440 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
441 | unique=`for i in $$list; do \ | ||
442 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
443 | done | \ | ||
444 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
445 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
446 | shift; \ | ||
447 | if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \ | ||
448 | test -n "$$unique" || unique=$$empty_fix; \ | ||
449 | if test $$# -gt 0; then \ | ||
450 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
451 | "$$@" $$unique; \ | ||
452 | else \ | ||
453 | $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \ | ||
454 | $$unique; \ | ||
455 | fi; \ | ||
456 | fi | ||
457 | ctags: CTAGS | ||
458 | CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \ | ||
459 | $(TAGS_FILES) $(LISP) | ||
460 | list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ | ||
461 | unique=`for i in $$list; do \ | ||
462 | if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ | ||
463 | done | \ | ||
464 | $(AWK) '{ files[$$0] = 1; nonempty = 1; } \ | ||
465 | END { if (nonempty) { for (i in files) print i; }; }'`; \ | ||
466 | test -z "$(CTAGS_ARGS)$$unique" \ | ||
467 | || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \ | ||
468 | $$unique | ||
469 | |||
470 | GTAGS: | ||
471 | here=`$(am__cd) $(top_builddir) && pwd` \ | ||
472 | && $(am__cd) $(top_srcdir) \ | ||
473 | && gtags -i $(GTAGS_ARGS) "$$here" | ||
474 | |||
475 | distclean-tags: | ||
476 | -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags | ||
477 | |||
478 | distdir: $(DISTFILES) | ||
479 | @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
480 | topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \ | ||
481 | list='$(DISTFILES)'; \ | ||
482 | dist_files=`for file in $$list; do echo $$file; done | \ | ||
483 | sed -e "s|^$$srcdirstrip/||;t" \ | ||
484 | -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \ | ||
485 | case $$dist_files in \ | ||
486 | */*) $(MKDIR_P) `echo "$$dist_files" | \ | ||
487 | sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \ | ||
488 | sort -u` ;; \ | ||
489 | esac; \ | ||
490 | for file in $$dist_files; do \ | ||
491 | if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \ | ||
492 | if test -d $$d/$$file; then \ | ||
493 | dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \ | ||
494 | if test -d "$(distdir)/$$file"; then \ | ||
495 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
496 | fi; \ | ||
497 | if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \ | ||
498 | cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \ | ||
499 | find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \ | ||
500 | fi; \ | ||
501 | cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \ | ||
502 | else \ | ||
503 | test -f "$(distdir)/$$file" \ | ||
504 | || cp -p $$d/$$file "$(distdir)/$$file" \ | ||
505 | || exit 1; \ | ||
506 | fi; \ | ||
507 | done | ||
508 | check-am: all-am | ||
509 | check: check-am | ||
510 | all-am: Makefile $(LTLIBRARIES) | ||
511 | installdirs: | ||
512 | for dir in "$(DESTDIR)$(controllerdir)"; do \ | ||
513 | test -z "$$dir" || $(MKDIR_P) "$$dir"; \ | ||
514 | done | ||
515 | install: install-am | ||
516 | install-exec: install-exec-am | ||
517 | install-data: install-data-am | ||
518 | uninstall: uninstall-am | ||
519 | |||
520 | install-am: all-am | ||
521 | @$(MAKE) $(AM_MAKEFLAGS) install-exec-am install-data-am | ||
522 | |||
523 | installcheck: installcheck-am | ||
524 | install-strip: | ||
525 | $(MAKE) $(AM_MAKEFLAGS) INSTALL_PROGRAM="$(INSTALL_STRIP_PROGRAM)" \ | ||
526 | install_sh_PROGRAM="$(INSTALL_STRIP_PROGRAM)" INSTALL_STRIP_FLAG=-s \ | ||
527 | `test -z '$(STRIP)' || \ | ||
528 | echo "INSTALL_PROGRAM_ENV=STRIPPROG='$(STRIP)'"` install | ||
529 | mostlyclean-generic: | ||
530 | |||
531 | clean-generic: | ||
532 | |||
533 | distclean-generic: | ||
534 | -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES) | ||
535 | -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES) | ||
536 | |||
537 | maintainer-clean-generic: | ||
538 | @echo "This command is intended for maintainers to use" | ||
539 | @echo "it deletes files that may require special tools to rebuild." | ||
540 | -test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES) | ||
541 | clean: clean-am | ||
542 | |||
543 | clean-am: clean-controllerLTLIBRARIES clean-generic clean-libtool \ | ||
544 | clean-local mostlyclean-am | ||
545 | |||
546 | distclean: distclean-am | ||
547 | -rm -rf ./$(DEPDIR) | ||
548 | -rm -f Makefile | ||
549 | distclean-am: clean-am distclean-compile distclean-generic \ | ||
550 | distclean-tags | ||
551 | |||
552 | dvi: dvi-am | ||
553 | |||
554 | dvi-am: | ||
555 | |||
556 | html: html-am | ||
557 | |||
558 | html-am: | ||
559 | |||
560 | info: info-am | ||
561 | |||
562 | info-am: | ||
563 | |||
564 | install-data-am: install-controllerLTLIBRARIES | ||
565 | @$(NORMAL_INSTALL) | ||
566 | $(MAKE) $(AM_MAKEFLAGS) install-data-hook | ||
567 | install-dvi: install-dvi-am | ||
568 | |||
569 | install-dvi-am: | ||
570 | |||
571 | install-exec-am: | ||
572 | |||
573 | install-html: install-html-am | ||
574 | |||
575 | install-html-am: | ||
576 | |||
577 | install-info: install-info-am | ||
578 | |||
579 | install-info-am: | ||
580 | |||
581 | install-man: | ||
582 | |||
583 | install-pdf: install-pdf-am | ||
584 | |||
585 | install-pdf-am: | ||
586 | |||
587 | install-ps: install-ps-am | ||
588 | |||
589 | install-ps-am: | ||
590 | |||
591 | installcheck-am: | ||
592 | |||
593 | maintainer-clean: maintainer-clean-am | ||
594 | -rm -rf ./$(DEPDIR) | ||
595 | -rm -f Makefile | ||
596 | maintainer-clean-am: distclean-am maintainer-clean-generic | ||
597 | |||
598 | mostlyclean: mostlyclean-am | ||
599 | |||
600 | mostlyclean-am: mostlyclean-compile mostlyclean-generic \ | ||
601 | mostlyclean-libtool | ||
602 | |||
603 | pdf: pdf-am | ||
604 | |||
605 | pdf-am: | ||
606 | |||
607 | ps: ps-am | ||
608 | |||
609 | ps-am: | ||
610 | |||
611 | uninstall-am: uninstall-controllerLTLIBRARIES | ||
612 | @$(NORMAL_INSTALL) | ||
613 | $(MAKE) $(AM_MAKEFLAGS) uninstall-hook | ||
614 | .MAKE: install-am install-data-am install-strip uninstall-am | ||
615 | |||
616 | .PHONY: CTAGS GTAGS all all-am check check-am clean \ | ||
617 | clean-controllerLTLIBRARIES clean-generic clean-libtool \ | ||
618 | clean-local ctags distclean distclean-compile \ | ||
619 | distclean-generic distclean-libtool distclean-tags distdir dvi \ | ||
620 | dvi-am html html-am info info-am install install-am \ | ||
621 | install-controllerLTLIBRARIES install-data install-data-am \ | ||
622 | install-data-hook install-dvi install-dvi-am install-exec \ | ||
623 | install-exec-am install-html install-html-am install-info \ | ||
624 | install-info-am install-man install-pdf install-pdf-am \ | ||
625 | install-ps install-ps-am install-strip installcheck \ | ||
626 | installcheck-am installdirs maintainer-clean \ | ||
627 | maintainer-clean-generic mostlyclean mostlyclean-compile \ | ||
628 | mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \ | ||
629 | tags uninstall uninstall-am uninstall-controllerLTLIBRARIES \ | ||
630 | uninstall-hook | ||
631 | |||
632 | |||
633 | install-data-hook: | ||
634 | rm -f $(DESTDIR)$(controllerdir)/$(controller_LTLIBRARIES) | ||
635 | uninstall-hook: | ||
636 | rm -f $(DESTDIR)$(controllerdir)/module.* | ||
637 | |||
638 | clean-local: | ||
639 | rm -rf *.gcno | ||
640 | |||
641 | # Tell versions [3.59,3.63) of GNU make to not export all variables. | ||
642 | # Otherwise a system limit (for SysV at least) may be exceeded. | ||
643 | .NOEXPORT: | ||
diff --git a/libraries/eina/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c b/libraries/eina/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c new file mode 100644 index 0000000..e053e15 --- /dev/null +++ b/libraries/eina/src/modules/mp/fixed_bitmap/eina_fixed_bitmap.c | |||
@@ -0,0 +1,270 @@ | |||
1 | /* EINA - EFL data type library | ||
2 | * Copyright (C) 2008 Cedric BAIL | ||
3 | * | ||
4 | * This library is free software; you can redistribute it and/or | ||
5 | * modify it under the terms of the GNU Lesser General Public | ||
6 | * License as published by the Free Software Foundation; either | ||
7 | * version 2.1 of the License, or (at your option) any later version. | ||
8 | * | ||
9 | * This library is distributed in the hope that it will be useful, | ||
10 | * but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
11 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
12 | * Lesser General Public License for more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU Lesser General Public | ||
15 | * License along with this library; | ||
16 | * if not, see <http://www.gnu.org/licenses/>. | ||
17 | */ | ||
18 | |||
19 | #ifdef HAVE_CONFIG_H | ||
20 | # include "config.h" | ||
21 | #endif | ||
22 | |||
23 | #ifndef _MSC_VER | ||
24 | # include <stdint.h> | ||
25 | #endif | ||
26 | #include <string.h> | ||
27 | #include <assert.h> | ||
28 | |||
29 | #ifdef HAVE_EVIL | ||
30 | # include <Evil.h> | ||
31 | #endif | ||
32 | |||
33 | #include "eina_inlist.h" | ||
34 | #include "eina_rbtree.h" | ||
35 | #include "eina_error.h" | ||
36 | |||
37 | #include "eina_mempool.h" | ||
38 | |||
39 | #include "eina_private.h" | ||
40 | |||
41 | typedef struct _Eina_Fixed_Bitmap Eina_Fixed_Bitmap; | ||
42 | typedef struct _Eina_Fixed_Bitmap_Pool Eina_Fixed_Bitmap_Pool; | ||
43 | |||
44 | struct _Eina_Fixed_Bitmap | ||
45 | { | ||
46 | Eina_Rbtree *lookup; | ||
47 | Eina_Inlist *head; | ||
48 | |||
49 | int item_size; | ||
50 | }; | ||
51 | |||
52 | struct _Eina_Fixed_Bitmap_Pool | ||
53 | { | ||
54 | EINA_RBTREE; | ||
55 | EINA_INLIST; | ||
56 | |||
57 | uint32_t bitmask; | ||
58 | }; | ||
59 | |||
60 | static inline size_t | ||
61 | _eina_rbtree_inlist_delta(void) | ||
62 | { | ||
63 | Eina_Fixed_Bitmap_Pool tmp; | ||
64 | void *a = &tmp.__rbtree; | ||
65 | void *b = &tmp.__in_list; | ||
66 | |||
67 | return (char *)a - (char *)b; | ||
68 | } | ||
69 | |||
70 | static Eina_Rbtree_Direction | ||
71 | _eina_fixed_cmp(const Eina_Rbtree *left, | ||
72 | const Eina_Rbtree *right, | ||
73 | __UNUSED__ void *data) | ||
74 | { | ||
75 | if (left - right < 0) | ||
76 | return EINA_RBTREE_LEFT; | ||
77 | |||
78 | return EINA_RBTREE_RIGHT; | ||
79 | } | ||
80 | |||
81 | static int | ||
82 | _eina_fixed_cmp_key(const Eina_Rbtree *node, | ||
83 | const void *key, | ||
84 | __UNUSED__ int length, | ||
85 | Eina_Fixed_Bitmap *mp) | ||
86 | { | ||
87 | const void *a = node; | ||
88 | const void *b = key; | ||
89 | ssize_t delta; | ||
90 | ssize_t limit; | ||
91 | |||
92 | limit = sizeof (Eina_Fixed_Bitmap_Pool) + mp->item_size * 32; | ||
93 | delta = (char *)a - (char *)b; | ||
94 | |||
95 | if (delta > 0) | ||
96 | return 1; | ||
97 | |||
98 | if (delta + limit < 0) | ||
99 | return -1; | ||
100 | |||
101 | return 0; | ||
102 | } | ||
103 | |||
104 | static void | ||
105 | _eina_fixed_bitmap_pool_free(Eina_Fixed_Bitmap_Pool *pool, | ||
106 | __UNUSED__ void *data) | ||
107 | { | ||
108 | free(pool); | ||
109 | } | ||
110 | |||
111 | static void * | ||
112 | eina_fixed_bitmap_malloc(void *data, __UNUSED__ unsigned int size) | ||
113 | { | ||
114 | Eina_Fixed_Bitmap *mp = data; | ||
115 | Eina_Fixed_Bitmap_Pool *pool = NULL; | ||
116 | void *ptr; | ||
117 | int idx; | ||
118 | |||
119 | if (mp->head) | ||
120 | { | ||
121 | pool = | ||
122 | (Eina_Fixed_Bitmap_Pool *)((unsigned char *)mp->head + | ||
123 | _eina_rbtree_inlist_delta()); | ||
124 | |||
125 | if (pool->bitmask == 0) | ||
126 | pool = NULL; | ||
127 | } | ||
128 | |||
129 | if (!pool) | ||
130 | { | ||
131 | eina_error_set(0); | ||
132 | pool = malloc(sizeof (Eina_Fixed_Bitmap_Pool) + mp->item_size * 32); | ||
133 | if (!pool) | ||
134 | { | ||
135 | eina_error_set(EINA_ERROR_OUT_OF_MEMORY); | ||
136 | return NULL; | ||
137 | } | ||
138 | |||
139 | pool->bitmask = 0xFFFFFFFF; | ||
140 | |||
141 | mp->head = eina_inlist_prepend(mp->head, EINA_INLIST_GET(pool)); | ||
142 | mp->lookup = eina_rbtree_inline_insert(mp->lookup, EINA_RBTREE_GET( | ||
143 | pool), | ||
144 | EINA_RBTREE_CMP_NODE_CB( | ||
145 | _eina_fixed_cmp), NULL); | ||
146 | } | ||
147 | |||
148 | idx = ffs(pool->bitmask) - 1; | ||
149 | pool->bitmask &= ~(1 << idx); | ||
150 | ptr = (unsigned char *)(pool + 1) + idx * mp->item_size; | ||
151 | |||
152 | if (pool->bitmask == 0) | ||
153 | mp->head = eina_inlist_demote(mp->head, EINA_INLIST_GET(pool)); | ||
154 | |||
155 | return ptr; | ||
156 | } | ||
157 | |||
158 | static void | ||
159 | eina_fixed_bitmap_free(void *data, void *ptr) | ||
160 | { | ||
161 | Eina_Fixed_Bitmap *mp = data; | ||
162 | Eina_Fixed_Bitmap_Pool *pool; | ||
163 | void *a; | ||
164 | Eina_Bool push_front = EINA_FALSE; | ||
165 | ssize_t delta; | ||
166 | |||
167 | pool = (Eina_Fixed_Bitmap_Pool *)eina_rbtree_inline_lookup( | ||
168 | mp->lookup, | ||
169 | ptr, | ||
170 | 0, | ||
171 | EINA_RBTREE_CMP_KEY_CB( | ||
172 | _eina_fixed_cmp_key), | ||
173 | mp); | ||
174 | if (!pool) | ||
175 | return; | ||
176 | |||
177 | if (pool->bitmask != 0xFFFFFFFF) | ||
178 | push_front = EINA_TRUE; | ||
179 | |||
180 | a = pool; | ||
181 | delta = | ||
182 | ((char *)ptr - (char *)a - | ||
183 | sizeof (Eina_Fixed_Bitmap_Pool)) / mp->item_size; | ||
184 | |||
185 | assert(delta >= 0 && delta < 32); | ||
186 | |||
187 | pool->bitmask |= (1 << (delta & 0x1F)); | ||
188 | |||
189 | if (pool->bitmask == 0xFFFFFFFF) | ||
190 | { | ||
191 | mp->head = eina_inlist_remove(mp->head, EINA_INLIST_GET(pool)); | ||
192 | mp->lookup = eina_rbtree_inline_remove(mp->lookup, EINA_RBTREE_GET( | ||
193 | pool), | ||
194 | EINA_RBTREE_CMP_NODE_CB( | ||
195 | _eina_fixed_cmp), NULL); | ||
196 | free(pool); | ||
197 | } | ||
198 | else if (push_front) | ||
199 | mp->head = eina_inlist_promote(mp->head, EINA_INLIST_GET(pool)); | ||
200 | } | ||
201 | |||
202 | static void * | ||
203 | eina_fixed_bitmap_realloc(__UNUSED__ void *data, | ||
204 | __UNUSED__ void *element, | ||
205 | __UNUSED__ unsigned int size) | ||
206 | { | ||
207 | return NULL; | ||
208 | } | ||
209 | |||
210 | static void * | ||
211 | eina_fixed_bitmap_init(__UNUSED__ const char *context, | ||
212 | __UNUSED__ const char *option, | ||
213 | va_list args) | ||
214 | { | ||
215 | Eina_Fixed_Bitmap *mp; | ||
216 | int item_size; | ||
217 | |||
218 | mp = malloc(sizeof (Eina_Fixed_Bitmap)); | ||
219 | if (!mp) | ||
220 | return NULL; | ||
221 | |||
222 | item_size = va_arg(args, int); | ||
223 | |||
224 | mp->item_size = eina_mempool_alignof(item_size); | ||
225 | |||
226 | mp->lookup = NULL; | ||
227 | mp->head = NULL; | ||
228 | |||
229 | return mp; | ||
230 | } | ||
231 | |||
232 | static void | ||
233 | eina_fixed_bitmap_shutdown(void *data) | ||
234 | { | ||
235 | Eina_Fixed_Bitmap *mp = data; | ||
236 | |||
237 | eina_rbtree_delete(mp->lookup, | ||
238 | EINA_RBTREE_FREE_CB(_eina_fixed_bitmap_pool_free), NULL); | ||
239 | free(mp); | ||
240 | } | ||
241 | |||
242 | static Eina_Mempool_Backend _eina_fixed_bitmap_mp_backend = { | ||
243 | "fixed_bitmap", | ||
244 | &eina_fixed_bitmap_init, | ||
245 | &eina_fixed_bitmap_free, | ||
246 | &eina_fixed_bitmap_malloc, | ||
247 | &eina_fixed_bitmap_realloc, | ||
248 | NULL, | ||
249 | NULL, | ||
250 | &eina_fixed_bitmap_shutdown, | ||
251 | NULL | ||
252 | }; | ||
253 | |||
254 | Eina_Bool fixed_bitmap_init(void) | ||
255 | { | ||
256 | return eina_mempool_register(&_eina_fixed_bitmap_mp_backend); | ||
257 | } | ||
258 | |||
259 | void fixed_bitmap_shutdown(void) | ||
260 | { | ||
261 | eina_mempool_unregister(&_eina_fixed_bitmap_mp_backend); | ||
262 | } | ||
263 | |||
264 | #ifndef EINA_STATIC_BUILD_FIXED_BITMAP | ||
265 | |||
266 | EINA_MODULE_INIT(fixed_bitmap_init); | ||
267 | EINA_MODULE_SHUTDOWN(fixed_bitmap_shutdown); | ||
268 | |||
269 | #endif /* ! EINA_STATIC_BUILD_FIXED_BITMAP */ | ||
270 | |||