Implementation of some string.h function using SSE2 instructions

Wojciech Muła wojciech_mula@poczta.onet.pl
Wed Aug 15 17:01:00 GMT 2007


John Reiser wrote:
> PaweÂł Sikora <pluto@agmk.net> wrote:
> 
>>                 __m128i m1 = *( __m128i* )( s1 ); 
> 
> SIGSEGV will occur when the input strings are within 15 bytes below
> an address-space boundary, such as the high end of user address space.
 > [...]

Problem disappear if code operate on 16-byte aligned chunks.
It need few additional instructions and is absolute **safe**.

w.




More information about the Libc-alpha mailing list