Use the EXTBL macro where we want the extbl instruction.

On the 68010 this expands to an extw/extl combination.
This commit is contained in:
fredette 2001-05-16 03:14:12 +00:00
parent 8ba384c841
commit 332aa50acb
2 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: strcmp.S,v 1.7 2000/11/28 15:26:34 is Exp $ */
/* $NetBSD: strcmp.S,v 1.8 2001/05/16 03:14:12 fredette 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.7 2000/11/28 15:26:34 is Exp $")
RCSID("$NetBSD: strcmp.S,v 1.8 2001/05/16 03:14:12 fredette Exp $")
#endif /* LIBC_SCCS and not lint */
ENTRY(strcmp)
@ -68,7 +68,7 @@ L1: /* unrolled by 4 for 680[23]0's */
jeq L1
L3: scs %d0
extbl %d0
EXTBL(%d0)
movb %d1,%d0
rts

View File

@ -1,4 +1,4 @@
/* $NetBSD: strncmp.S,v 1.6 1999/11/11 01:32:14 thorpej Exp $ */
/* $NetBSD: strncmp.S,v 1.7 2001/05/16 03:14:12 fredette Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@ -40,7 +40,7 @@
#include <machine/asm.h>
#if defined(LIBC_SCCS) && !defined(lint)
RCSID("$NetBSD: strncmp.S,v 1.6 1999/11/11 01:32:14 thorpej Exp $")
RCSID("$NetBSD: strncmp.S,v 1.7 2001/05/16 03:14:12 fredette Exp $")
#endif /* LIBC_SCCS and not lint */
ENTRY(strncmp)
@ -80,6 +80,6 @@ L4: rts
L2: subb %a1@,%d1
L3: scs %d0
extbl %d0
EXTBL(%d0)
movb %d1,%d0
rts