From 499426caf953627696415515c4a95513d5dbc329 Mon Sep 17 00:00:00 2001 From: Andrew Mahone Date: Sat, 24 Jan 2009 22:57:57 +0000 Subject: 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 --- apps/plugin.h | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'apps/plugin.h') diff --git a/apps/plugin.h b/apps/plugin.h index a83a9788e9..97c3087779 100644 --- a/apps/plugin.h +++ b/apps/plugin.h @@ -853,26 +853,6 @@ extern const struct plugin_api *rb; enum plugin_status plugin_start(const void* parameter) NO_PROF_ATTR; -/* Use this macro in plugins where gcc tries to optimize by calling - * these functions directly */ -#define MEM_FUNCTION_WRAPPERS \ - void *memcpy(void *dest, const void *src, size_t n) \ - { \ - return rb->memcpy(dest, src, n); \ - } \ - void *memset(void *dest, int c, size_t n) \ - { \ - return rb->memset(dest, c, n); \ - } \ - void *memmove(void *dest, const void *src, size_t n) \ - { \ - return rb->memmove(dest, src, n); \ - } \ - int memcmp(const void *s1, const void *s2, size_t n) \ - { \ - return rb->memcmp(s1, s2, n); \ - } - #undef CACHE_FUNCTION_WRAPPERS #ifdef CACHE_FUNCTIONS_AS_CALL #define CACHE_FUNCTION_WRAPPERS \ -- cgit v1.2.3