Sync with libc: make function exit one instruction faster, and function one

instruction shorter (Horimoto).
This commit is contained in:
is 2000-11-28 15:26:34 +00:00
parent a4fe32b56e
commit 94f7c9c6f9
1 changed files with 7 additions and 8 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: strcmp.S,v 1.6 1999/11/11 01:32:13 thorpej Exp $ */
/* $NetBSD: strcmp.S,v 1.7 2000/11/28 15:26:34 is Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: strcmp.S,v 1.6 1999/11/11 01:32:13 thorpej Exp $")
RCSID("$NetBSD: strcmp.S,v 1.7 2000/11/28 15:26:34 is Exp $")
#endif /* LIBC_SCCS and not lint */
ENTRY(strcmp)
@ -67,13 +67,12 @@ L1: /* unrolled by 4 for 680[23]0's */
subb %a1@+,%d1
jeq L1
scs %d0
extbl %d0
movb %d1,%d0
rts
L2: subb %a1@,%d1
L3: scs %d0
extbl %d0
movb %d1,%d0
rts
L2: movq #0,%d0
movb %a1@,%d0
negl %d0
rts