[RFC] strcpy optimizations

Andi Kleen andi@firstfloor.org
Tue Jan 29 22:22:00 GMT 2013


> The behavior of strcpy is undefined in that case.
> So strcpy can do whatever it likes, and
> that includes using the pblendvb instruction.

Normally you have to handle this situation for any string code
that does accesses larger than a byte, because users can create
this by using offsets into strings.

-Andi



More information about the Libc-alpha mailing list