From nobody Fri Jan 10 15:03:59 2025 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 4YV4g40ZxMz5kTNT; Fri, 10 Jan 2025 15:04:00 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4YV4g35VXBz4x56; Fri, 10 Jan 2025 15:03:59 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736521439; 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=0oObzkAwmzs045FD/NwBMsIOV34w3MsCIelyV9AUlgo=; b=r1qzKY3eQYOPIM0tbc5/RSmanstlG0RPxvHTxiHsu+UbzwKt9BsKBzQS5VPc9DoqltNCS+ u9uMT6kylpJ9LtlN9d86h4V4rBeaCaClC+7Sk0819B78ghDa2bREYO5h9nTHpYIRpv7yN/ oG/x5lLpfchS2VX5u6ztL/mxnvbDK260IkJ9r1+ENGgUMhyrYXgNQaDJbj1M/Y9wAadOc4 nLOdGnB9ITmfEhcrkmbpPKF/iNPZN/thC2pFr+wYbN5BXSTN40KNpF4r9v5pUWFlBcAbqV dGpSWnDvWClMNKeUHafSj8a0XyhvHiYPmZPSGRPrWrxS/Pr633YFqW3QDzkHiA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1736521439; 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=0oObzkAwmzs045FD/NwBMsIOV34w3MsCIelyV9AUlgo=; b=MazsSym707Je3687pbjLFSu5BJTU1f1lXmTnF/UFrzKoYuaZj3GcYqfJRs0f6mRypAZn2K j32v1EwQ8GVbCfGSBqSytK8du3oFyvYvllHFE2oCbgoHiTvAf0YVQxAT8lTSOXTueHtOCJ Th26v68Cj6dlF+6+B0MQ9HLFzmvsS0L5I6lrO1YK5IK8EcbyJA+COcI16xLUOllob3YeOs JaMWOoSwQ5u+TzBEoHjC+tZ4XCsOif8gLe5wQFeKIyjXurLuAe+lti5XiQI/ysxZ+bvzC2 XDsLZ48d1Tz5RAERAD5QTG0r3ck0rlVIq71xu4dexX1mjEsm2yM39UoED+DHYQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1736521439; a=rsa-sha256; cv=none; b=dN/O3XAK5wjPFd/TOkTAOssnWyAr66Ikfl7GRXQP7F4+CSpdirZZepxrEq/0pATaMmepV0 ufXxbPN/SebrrVHSyjKH9d/cNWzJERfjdOw65pmi2w/Wy1Xnme8KEHQDc7D4tHchXKQ2fP D7y2p8vVGrUY6rLFUaNznAU5942hjOP5xf8IeQ9VVka2PfHxrmihtenparNCV/q2M8BkMz m/IxyiOw08vC3tfTKG3HwRyk11tRpJPXmHqyNX8I0ypeptteDqHEoaSm1HrA3o5SAcE1lC BlCAlcK3Md8G7s2k5llnBCxgGHxn6m0uzbACQxXuHpK3fpPIHOKrixc0e/5hvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4YV4g354dwz2Jj; Fri, 10 Jan 2025 15:03:59 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 50AF3xHk057366; Fri, 10 Jan 2025 15:03:59 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 50AF3xt4057363; Fri, 10 Jan 2025 15:03:59 GMT (envelope-from git) Date: Fri, 10 Jan 2025 15:03:59 GMT Message-Id: <202501101503.50AF3xt4057363@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Robert Clausecker Subject: git: 5ebd4d0dd2f4 - main - lib/libc/aarch64/string: add memcpy SIMD implementation 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: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5ebd4d0dd2f45040aa5e5b028a4b93163aea6899 Auto-Submitted: auto-generated The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/src/commit/?id=5ebd4d0dd2f45040aa5e5b028a4b93163aea6899 commit 5ebd4d0dd2f45040aa5e5b028a4b93163aea6899 Author: Getz Mikalsen AuthorDate: 2024-08-26 18:13:44 +0000 Commit: Robert Clausecker CommitDate: 2025-01-10 15:02:40 +0000 lib/libc/aarch64/string: add memcpy SIMD implementation I noticed that we have a SIMD optimized memcpy in the arm-optimized-routines in /contrib. This patch ensures we use the SIMD variant as opposed to the Scalar optimized variant. Benchmarks are generated by fuz' strperf utility. See the DR for benchmark results. Tested by: fuz (exprun) Reviewed by: fuz, emaste Sponsored by: Google LLC (GSoC 2024) PR: 281175 Differential Revision: https://reviews.freebsd.org/D46251 --- lib/libc/aarch64/string/memcpy.S | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/libc/aarch64/string/memcpy.S b/lib/libc/aarch64/string/memcpy.S index f403dd2e42a8..53e860750eb2 100644 --- a/lib/libc/aarch64/string/memcpy.S +++ b/lib/libc/aarch64/string/memcpy.S @@ -1,3 +1,3 @@ -#define __memcpy_aarch64 memcpy -#define __memmove_aarch64 memmove -#include "aarch64/memcpy.S" +#define __memcpy_aarch64_simd memcpy +#define __memmove_aarch64_simd memmove +#include "aarch64/memcpy-advsimd.S"