1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00

revert r191633; this breaks at91 & xscale (likely all arm)

This commit is contained in:
Sam Leffler 2009-05-06 01:50:04 +00:00
parent cedd69ef18
commit f4f8f02054
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=191836

View File

@ -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