commit | 77b3625763ae4d5aa6aaa9d44fbc1bfec6b29335 | [log] [tgz] |
---|---|---|
author | Michael Sevakis <jethead71@rockbox.org> | Wed Aug 06 04:26:52 2014 -0400 |
committer | Michael Sevakis <jethead71@rockbox.org> | Fri Aug 29 22:06:57 2014 -0400 |
tree | 74b12e2669da8653932f48f1ca3816eef4bf6324 | |
parent | 7d1a47cf13726c95ac46027156cc12dd9da5b855 [diff] |
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