Date: Wed, 6 May 2009 01:50:04 +0000 (UTC) From: Sam Leffler <sam@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r191836 - head/lib/libc/arm/string Message-ID: <200905060150.n461o4XD000375@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: sam Date: Wed May 6 01:50:04 2009 New Revision: 191836 URL: http://svn.freebsd.org/changeset/base/191836 Log: revert r191633; this breaks at91 & xscale (likely all arm) Modified: head/lib/libc/arm/string/strncmp.S Modified: head/lib/libc/arm/string/strncmp.S ============================================================================== --- head/lib/libc/arm/string/strncmp.S Wed May 6 00:31:33 2009 (r191835) +++ head/lib/libc/arm/string/strncmp.S Wed May 6 01:50:04 2009 (r191836) @@ -33,10 +33,10 @@ __FBSDID("$FreeBSD$"); ENTRY(strncmp) -/* if (len == 0) return 0 */ - cmp r2, #0 - moveq r0, #0 - RETeq +/* if ((len - 1) < 0) return 0 */ + subs r2, r2, #1 + movmi r0, #0 + movmi pc, lr /* ip == last src address to compare */ add ip, r0, r2
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905060150.n461o4XD000375>