This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] strcpy optimizations


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]