diff options
author | Michael Sevakis <jethead71@rockbox.org> | 2014-08-06 04:26:52 -0400 |
---|---|---|
committer | Michael Sevakis <jethead71@rockbox.org> | 2014-08-29 22:06:57 -0400 |
commit | 77b3625763ae4d5aa6aaa9d44fbc1bfec6b29335 (patch) | |
tree | 74b12e2669da8653932f48f1ca3816eef4bf6324 /firmware/asm/SOURCES | |
parent | 7d1a47cf13726c95ac46027156cc12dd9da5b855 (diff) | |
download | rockbox-77b3625763ae4d5aa6aaa9d44fbc1bfec6b29335.tar.gz rockbox-77b3625763ae4d5aa6aaa9d44fbc1bfec6b29335.zip |
Add mempcpy implementation
A GNU extension that returns dst + size instead of dst. It's a nice
shortcut when copying strings with a known size or back-to-back blocks
and you have to do it often.
May of course be called directly or alternately through
__builtin_mempcpy in some compiler versions.
For ASM on native targets, it is implemented as an alternate entrypoint
to memcpy which adds minimal code and overhead.
Change-Id: I4cbb3483f6df3c1007247fe0a95fd7078737462b
Diffstat (limited to 'firmware/asm/SOURCES')
-rw-r--r-- | firmware/asm/SOURCES | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/firmware/asm/SOURCES b/firmware/asm/SOURCES index a9293b4297..ebb6951071 100644 --- a/firmware/asm/SOURCES +++ b/firmware/asm/SOURCES | |||
@@ -7,6 +7,10 @@ memset.c | |||
7 | strlen.c | 7 | strlen.c |
8 | #endif | 8 | #endif |
9 | 9 | ||
10 | #if defined(WIN32) || defined(APPLICATION) | ||
11 | mempcpy.c | ||
12 | #endif | ||
13 | |||
10 | #if (defined(SANSA_E200) || defined(GIGABEAT_F) || defined(GIGABEAT_S) || \ | 14 | #if (defined(SANSA_E200) || defined(GIGABEAT_F) || defined(GIGABEAT_S) || \ |
11 | defined(CREATIVE_ZVx) || defined(SANSA_CONNECT) || defined(SANSA_FUZEPLUS) || \ | 15 | defined(CREATIVE_ZVx) || defined(SANSA_CONNECT) || defined(SANSA_FUZEPLUS) || \ |
12 | defined(COWON_D2) || defined(MINI2440) || defined(SAMSUNG_YPR0) || \ | 16 | defined(COWON_D2) || defined(MINI2440) || defined(SAMSUNG_YPR0) || \ |