Re: [TRIVIAL] strlen("literal string") -> (sizeof("literal string")-1)

Alexander Viro
2002-08-29T17:46:39Z

On 29 Aug 2002, Andi Kleen wrote:

> It does a better job for near all the string.h stuff. x86-64 just uses
> the builtins. Only exception is memcpy, where it likes to call out of line
> memcpy when it is not absolutely sure about all the alignments
> (especally lots of casting causes that)

memcpy() on x86 includes uses of mmx_memcpy(). Not likely to be done by gcc...