summaryrefslogtreecommitdiff
path: root/apps/plugins/lib
diff options
context:
space:
mode:
authorAndrew Mahone <andrew.mahone@gmail.com>2009-01-24 22:57:57 +0000
committerAndrew Mahone <andrew.mahone@gmail.com>2009-01-24 22:57:57 +0000
commit499426caf953627696415515c4a95513d5dbc329 (patch)
tree01924fa67b9bf133a7c986274ced07d7e66c978d /apps/plugins/lib
parent2490262eee17c3dcff0a39fb4011662dfdfc4478 (diff)
downloadrockbox-499426caf953627696415515c4a95513d5dbc329.tar.gz
rockbox-499426caf953627696415515c4a95513d5dbc329.zip
remove MEM_FUNCTION_WRAPPERS, and private mem* implementations from plugins, and replace with pluginlib implementations in plugins/lib/gcc-support.c
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19847 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/lib')
-rw-r--r--apps/plugins/lib/SOURCES3
-rw-r--r--apps/plugins/lib/gcc-support.c20
2 files changed, 20 insertions, 3 deletions
diff --git a/apps/plugins/lib/SOURCES b/apps/plugins/lib/SOURCES
index 6fca04ae91..9f112dd8c0 100644
--- a/apps/plugins/lib/SOURCES
+++ b/apps/plugins/lib/SOURCES
@@ -1,7 +1,4 @@
1#ifdef CPU_ARM
2/* For now, only ARM uses this for __div0 */
3gcc-support.c 1gcc-support.c
4#endif
5oldmenuapi.c 2oldmenuapi.c
6configfile.c 3configfile.c
7fixedpoint.c 4fixedpoint.c
diff --git a/apps/plugins/lib/gcc-support.c b/apps/plugins/lib/gcc-support.c
index 91744d7fbc..4ea9cfd13a 100644
--- a/apps/plugins/lib/gcc-support.c
+++ b/apps/plugins/lib/gcc-support.c
@@ -28,3 +28,23 @@ void __attribute__((naked)) __div0(void)
28 asm volatile("bx %0" : : "r"(rb->__div0)); 28 asm volatile("bx %0" : : "r"(rb->__div0));
29} 29}
30#endif 30#endif
31
32void *memcpy(void *dest, const void *src, size_t n)
33{
34 return rb->memcpy(dest, src, n);
35}
36
37void *memset(void *dest, int c, size_t n)
38{
39 return rb->memset(dest, c, n);
40}
41
42void *memmove(void *dest, const void *src, size_t n)
43{
44 return rb->memmove(dest, src, n);
45}
46
47int memcmp(const void *s1, const void *s2, size_t n)
48{
49 return rb->memcmp(s1, s2, n);
50}