Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Aug 2021 18:38:11 GMT
From:      Mateusz Guzik <mjg@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 8e4f67f17ff2 - main - i386: retire bcmp
Message-ID:  <202108231838.17NIcBX0005985@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by mjg:

URL: https://cgit.FreeBSD.org/src/commit/?id=8e4f67f17ff27371c6d06c4143807e293f07c51e

commit 8e4f67f17ff27371c6d06c4143807e293f07c51e
Author:     Mateusz Guzik <mjg@FreeBSD.org>
AuthorDate: 2021-08-23 16:27:17 +0000
Commit:     Mateusz Guzik <mjg@FreeBSD.org>
CommitDate: 2021-08-23 18:38:04 +0000

    i386: retire bcmp
    
    Unused since ba96f37758412151 ("Use __builtin for various mem* and b* (e.g. bzero)
    routines.")
    
    Sponsored by:   Rubicon Communications, LLC ("Netgate")
---
 sys/i386/i386/support.s | 25 -------------------------
 1 file changed, 25 deletions(-)

diff --git a/sys/i386/i386/support.s b/sys/i386/i386/support.s
index b29354c47455..2fc02a67b600 100644
--- a/sys/i386/i386/support.s
+++ b/sys/i386/i386/support.s
@@ -232,31 +232,6 @@ ENTRY(memcpy)
 	ret
 END(memcpy)
 
-ENTRY(bcmp)
-	pushl	%edi
-	pushl	%esi
-	movl	12(%esp),%edi
-	movl	16(%esp),%esi
-	movl	20(%esp),%edx
-
-	movl	%edx,%ecx
-	shrl	$2,%ecx
-	repe
-	cmpsl
-	jne	1f
-
-	movl	%edx,%ecx
-	andl	$3,%ecx
-	repe
-	cmpsb
-1:
-	setne	%al
-	movsbl	%al,%eax
-	popl	%esi
-	popl	%edi
-	ret
-END(bcmp)
-
 /*
  * Handling of special 386 registers and descriptor tables etc
  */



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202108231838.17NIcBX0005985>