[RFC] strcpy optimizations

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


On Tue, Jan 29, 2013 at 09:15:42PM +0100, Ondřej Bílka wrote:
> Hi, I have several questions about strcpy.
> 
> First question: I need to know if it is safe for example to use pblendvb 
> on high 8 bytes while other thread modifies lower 8 bytes?

Generally it's not, it's not an atomic operation.

Also you always have to worry about being at a page boundary and the
next/prev page being unmapped. The PCMP*STR functions have special
code to handle this.

-Andi



More information about the Libc-alpha mailing list