summaryrefslogtreecommitdiff
path: root/firmware/asm/mempcpy.c (follow)
Commit message (Collapse)AuthorAge
* Add mempcpy implementationMichael Sevakis2014-08-29
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