diff options
author | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-24 22:57:57 +0000 |
---|---|---|
committer | Andrew Mahone <andrew.mahone@gmail.com> | 2009-01-24 22:57:57 +0000 |
commit | 499426caf953627696415515c4a95513d5dbc329 (patch) | |
tree | 01924fa67b9bf133a7c986274ced07d7e66c978d /apps/plugin.h | |
parent | 2490262eee17c3dcff0a39fb4011662dfdfc4478 (diff) | |
download | rockbox-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/plugin.h')
-rw-r--r-- | apps/plugin.h | 20 |
1 files changed, 0 insertions, 20 deletions
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; | |||
853 | enum plugin_status plugin_start(const void* parameter) | 853 | enum plugin_status plugin_start(const void* parameter) |
854 | NO_PROF_ATTR; | 854 | NO_PROF_ATTR; |
855 | 855 | ||
856 | /* Use this macro in plugins where gcc tries to optimize by calling | ||
857 | * these functions directly */ | ||
858 | #define MEM_FUNCTION_WRAPPERS \ | ||
859 | void *memcpy(void *dest, const void *src, size_t n) \ | ||
860 | { \ | ||
861 | return rb->memcpy(dest, src, n); \ | ||
862 | } \ | ||
863 | void *memset(void *dest, int c, size_t n) \ | ||
864 | { \ | ||
865 | return rb->memset(dest, c, n); \ | ||
866 | } \ | ||
867 | void *memmove(void *dest, const void *src, size_t n) \ | ||
868 | { \ | ||
869 | return rb->memmove(dest, src, n); \ | ||
870 | } \ | ||
871 | int memcmp(const void *s1, const void *s2, size_t n) \ | ||
872 | { \ | ||
873 | return rb->memcmp(s1, s2, n); \ | ||
874 | } | ||
875 | |||
876 | #undef CACHE_FUNCTION_WRAPPERS | 856 | #undef CACHE_FUNCTION_WRAPPERS |
877 | #ifdef CACHE_FUNCTIONS_AS_CALL | 857 | #ifdef CACHE_FUNCTIONS_AS_CALL |
878 | #define CACHE_FUNCTION_WRAPPERS \ | 858 | #define CACHE_FUNCTION_WRAPPERS \ |