From: Rich Felker Date: Wed, 1 Aug 2012 01:18:17 +0000 (-0400) Subject: optimize mempcpy to minimize need for data saved across the call X-Git-Tag: v0.9.3~4 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=970ef6a1240adfd685c27bf3407dfd06606a17e8;p=oweals%2Fmusl.git optimize mempcpy to minimize need for data saved across the call --- diff --git a/src/string/mempcpy.c b/src/string/mempcpy.c index 1b323f1e..c23ca69e 100644 --- a/src/string/mempcpy.c +++ b/src/string/mempcpy.c @@ -2,6 +2,5 @@ void *mempcpy(void *dest, const void *src, size_t n) { - memcpy(dest, src, n); - return (char *)dest + n; + return (char *)memcpy(dest, src, n) + n; }