PATCH: New 64 bit wcscmp implementation

Dmitrieva Liubov liubov.dmitrieva@gmail.com
Thu Sep 22 11:50:00 GMT 2011


Hello,

Please, ignore my previous small fixes, now I send big patch with
comprehensive fixing of mentioned bugs. (regarding with wrong
comparison semantics for some cases (signed comparison shall be used)
and overflow bug (we shall avoid using substraction, use cmp instead
of it) )

You should apply only this patch, it seems it covers now all places we
need to fix.

I checked make with "make check" for both 32 bit and 64 bit mode.

Thanks.

Change Log:
2011-09-22  Liubov Dmitrieva  <liubov.dmitrieva@gmail.com>

	* sysdeps/x86_64/wcscmp.S: Update.
	Fix wrong comparison semantics.
	Wcscmp shall use signed comparison not unsigned.
	Don't use substraction ti avoid overflow bug.

	* sysdeps/i386/i686/multiarch/wcscmp-sse2.S: Likewise.
	* wcsmbc/wcscmp.c: Likewise.
	* string/test-strcmp.c: Likewise.
	Add new tests to check cases with negative values.

--
Liubov Dmitrieva
Intel Corporation
-------------- next part --------------
A non-text attachment was scrubbed...
Name: wcscmp.patch
Type: application/octet-stream
Size: 15879 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/libc-alpha/attachments/20110922/2bb51eef/attachment.obj>


More information about the Libc-alpha mailing list