From nobody Fri Mar 25 14:58:19 2022 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 2B0221A2075D; Fri, 25 Mar 2022 14:58:20 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4KQ4wD0fKqz56V9; Fri, 25 Mar 2022 14:58:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648220300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tIm8amgEEQL6NANfkEaynKeDX5DYGJk/rPJhtcqi4hY=; b=nGz9UK4fLAMq8r8WNVmUAKDeRR9pIlDvX+RV92TnodcaHXV8qPExvhZndVBUC60/2BIXZd BI8q3Qj9dy4x9K/Buxw5sg93ayOsshZyVnCezVCfJJkr/0VeqRU8fP4xCfgOUtUwdG/IRm DLhRe4/50T9qRIRNZ8gTYwuU8sqMnggY37rJvEMORm6Td8lQe4+YRVneEIGa31qsh7FHsN v4ifrXNA3Or8AiRUy78I2/P6lKjJ1yc9FtYRoVvjVEMnUMb0Fckmf2+AU8gTRciGg0upE4 LuDKnGYv3rUXzUjW9N/fhIay7yqa7LKs+LpG9AQXqGi/YYKeoorThS/gcd4IJA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id E9FD66AEA; Fri, 25 Mar 2022 14:58:19 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 22PEwJNW026631; Fri, 25 Mar 2022 14:58:19 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 22PEwJYR026630; Fri, 25 Mar 2022 14:58:19 GMT (envelope-from git) Date: Fri, 25 Mar 2022 14:58:19 GMT Message-Id: <202203251458.22PEwJYR026630@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Mateusz Guzik Subject: git: f0f0f2abf333 - main - amd64: remove bcmp.S List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: mjg X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f0f0f2abf333fd221298b07f6831a0143a98c324 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1648220300; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=tIm8amgEEQL6NANfkEaynKeDX5DYGJk/rPJhtcqi4hY=; b=u1jwBtsoogeyIF0iHK1ci1Ez81OIT3NPV9TNdN2YZh61DJ2oWg29WhmUHomvr1/b48rmYy RUt/nhSlZcCncfOnvYEqDtZeAQa5XLmvnha7Ex7t56W/wR2C5V5k7SvYdOyLgxKtm27VoZ nS3BIE9d75W4yToJwsAwicD69fMS4eyNrwknUilhX6fyKVG16JTqOQ3RSIrKX/Tj6k3DEx UKDMZG/9ZmnQlvTFkf64jX5W3QooIQtkEqLys3UxqRjTegAlf/YJhzLjoEKQXRFlKZPcOK 7fqdzVxdjEYwFQ0Khf8hJKee4DomVLJBY/+L9kkTECOteEuUdLSFKSzOpSaB3A== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1648220300; a=rsa-sha256; cv=none; b=iXsaq6IrOaArESXena5MjAoZ/O8zHqYOOl33VM+I5CseS6k1TGyhsrJmuoWSV1iDwM/KJc OexYu7LLKvQvhSOKsNWRRhTsDIBcnkXZ144egmCB52QVnNG7NwCcD7Mqw4UlkX+4XZnLLE +Ecx2NiDarmLaLatvlHezsLP8kbqNXJgikxOvMD78SubLD3MRLGNbIxlWsWD7O53jpcvVH 0TY4Xvk6BiktyEOvUHRlX+5e4A+/pdytZR//UnAcO/Y6virwtDy/u+StDNjH7UMYWcmG+0 emgmcnJo0LswILwzTGgzoO2kHNKDBW8c9m/oek4wQwkIwxUleOYuEgghtzHh6Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by mjg: URL: https://cgit.FreeBSD.org/src/commit/?id=f0f0f2abf333fd221298b07f6831a0143a98c324 commit f0f0f2abf333fd221298b07f6831a0143a98c324 Author: Mateusz Guzik AuthorDate: 2022-03-25 14:54:55 +0000 Commit: Mateusz Guzik CommitDate: 2022-03-25 14:57:51 +0000 amd64: remove bcmp.S Fixes: 5fc3cc2713eff8cd ("amd64: make bcmp in libc just call memcmp") --- lib/libc/amd64/string/bcmp.S | 121 ------------------------------------------- 1 file changed, 121 deletions(-) diff --git a/lib/libc/amd64/string/bcmp.S b/lib/libc/amd64/string/bcmp.S deleted file mode 100644 index efdc6d33e4dd..000000000000 --- a/lib/libc/amd64/string/bcmp.S +++ /dev/null @@ -1,121 +0,0 @@ -/*- - * Copyright (c) 2018 The FreeBSD Foundation - * - * This software was developed by Mateusz Guzik - * under sponsorship from the FreeBSD Foundation. - * - * Redistribution and use in source and binary forms, with or without - * modification, are permitted provided that the following conditions - * are met: - * 1. Redistributions of source code must retain the above copyright - * notice, this list of conditions and the following disclaimer. - * 2. Redistributions in binary form must reproduce the above copyright - * notice, this list of conditions and the following disclaimer in the - * documentation and/or other materials provided with the distribution. - * - * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND - * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE - * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE - * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE - * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL - * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS - * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) - * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT - * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY - * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF - * SUCH DAMAGE. - * - * $FreeBSD$ - */ - -#include -__FBSDID("$FreeBSD$"); - -ENTRY(bcmp) - cmpq $16,%rdx - jae 5f -1: - testq %rdx,%rdx - je 3f - xorl %ecx,%ecx -2: - movzbl (%rdi,%rcx,1),%eax - movzbl (%rsi,%rcx,1),%r8d - cmpb %r8b,%al - jne 4f - addq $1,%rcx - cmpq %rcx,%rdx - jz 3f - movzbl (%rdi,%rcx,1),%eax - movzbl (%rsi,%rcx,1),%r8d - cmpb %r8b,%al - jne 4f - addq $1,%rcx - cmpq %rcx,%rdx - jz 3f - movzbl (%rdi,%rcx,1),%eax - movzbl (%rsi,%rcx,1),%r8d - cmpb %r8b,%al - jne 4f - addq $1,%rcx - cmpq %rcx,%rdx - jz 3f - movzbl (%rdi,%rcx,1),%eax - movzbl (%rsi,%rcx,1),%r8d - cmpb %r8b,%al - jne 4f - addq $1,%rcx - cmpq %rcx,%rdx - jne 2b -3: - xorl %eax,%eax - ret -4: - movl $1,%eax - ret -5: - cmpq $32,%rdx - jae 7f -6: - /* - * 8 bytes - */ - movq (%rdi),%r8 - movq (%rsi),%r9 - cmpq %r8,%r9 - jne 4b - leaq 8(%rdi),%rdi - leaq 8(%rsi),%rsi - subq $8,%rdx - cmpq $8,%rdx - jae 6b - jl 1b - jmp 3b -7: - /* - * 32 bytes - */ - movq (%rsi),%r8 - movq 8(%rsi),%r9 - subq (%rdi),%r8 - subq 8(%rdi),%r9 - or %r8,%r9 - jnz 4b - - movq 16(%rsi),%r8 - movq 24(%rsi),%r9 - subq 16(%rdi),%r8 - subq 24(%rdi),%r9 - or %r8,%r9 - jnz 4b - - leaq 32(%rdi),%rdi - leaq 32(%rsi),%rsi - subq $32,%rdx - cmpq $32,%rdx - jae 7b - jnz 1b - jmp 3b -END(bcmp) - - .section .note.GNU-stack,"",%progbits