wcschr on unaligned input

Mike Frysinger vapier@gentoo.org
Mon Jul 16 00:28:00 GMT 2012


On Sunday 15 July 2012 00:49:03 Ondřej Bílka wrote:
> I noticed that wcschr.S uses movdqa instuction.
> What is intended behaviour if it is called on
> unaligned input like following?
> 
> wcschr("axxxxabcd"+1,*((int*)"abcd"))

wcschr takes a wchar_t*, so i'd expect the alignment requirements to arise 
based on that.
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20120716/f9f30b7c/attachment.sig>


More information about the Libc-help mailing list