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: Implementation of some string.h function using SSE2 instructions


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.



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