optimize mempcpy to minimize need for data saved across the call

This commit is contained in:
Rich Felker 2012-07-31 21:18:17 -04:00
parent 5aac5e2189
commit 970ef6a124
1 changed files with 1 additions and 2 deletions

View File

@ -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;
}