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