mirror of git://git.musl-libc.org/musl
optimize mempcpy to minimize need for data saved across the call
This commit is contained in:
parent
5aac5e2189
commit
970ef6a124
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue