Missing optimization: mempcpy(3) vs memcpy(3)
Martin Liška
mliska@suse.cz
Mon Dec 12 13:37:46 GMT 2022
On 12/9/22 18:11, Alejandro Colomar via Gcc wrote:
> I expect the compiler to be knowledgeable enough to call whatever is fastest, whatever it is, but be consistent in both cases. However, here are the results:
Hi.
Note the glibc implementation of mempcpy typically uses (calls) memcpy, thus
I don't see any problem with the code snippets you provided.
Cheers,
Martin
More information about the Gcc
mailing list