From nobody Sun Nov 19 23:07:55 2023 X-Original-To: freebsd-arch@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 4SYRBY4mk5z51Th4 for ; Sun, 19 Nov 2023 23:08:05 +0000 (UTC) (envelope-from fuz@fuz.su) Received: from fuz.su (fuz.su [IPv6:2001:41d0:8:e508::1]) (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 (2048 bits) client-digest SHA256) (Client CN "fuz.su", Issuer "fuz.su" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4SYRBX0fX8z3WfF for ; Sun, 19 Nov 2023 23:08:03 +0000 (UTC) (envelope-from fuz@fuz.su) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of fuz@fuz.su designates 2001:41d0:8:e508::1 as permitted sender) smtp.mailfrom=fuz@fuz.su; dmarc=none Received: from fuz.su (localhost [127.0.0.1]) by fuz.su (8.17.1/8.17.1) with ESMTPS id 3AJN7t2I095953 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Mon, 20 Nov 2023 00:07:55 +0100 (CET) (envelope-from fuz@fuz.su) Received: (from fuz@localhost) by fuz.su (8.17.1/8.17.1/Submit) id 3AJN7tZF095952 for freebsd-arch@freebsd.org; Mon, 20 Nov 2023 00:07:55 +0100 (CET) (envelope-from fuz) Date: Mon, 20 Nov 2023 00:07:55 +0100 From: fuz@freebsd.org To: freebsd-arch@freebsd.org Subject: Looking for review on amd64 libc SIMD enhancements Message-ID: List-Id: Discussion related to FreeBSD architecture List-Archive: https://lists.freebsd.org/archives/freebsd-arch List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-arch@freebsd.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="4jtdsqtyO9exd7Db" Content-Disposition: inline X-Spamd-Result: default: False [-5.10 / 15.00]; SIGNED_PGP(-2.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-0.995]; FORGED_SENDER(0.30)[fuz@freebsd.org,fuz@fuz.su]; MIME_GOOD(-0.20)[multipart/signed,text/plain]; R_SPF_ALLOW(-0.20)[+a]; MLMMJ_DEST(0.00)[freebsd-arch@freebsd.org]; R_DKIM_NA(0.00)[]; RCVD_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:16276, ipnet:2001:41d0::/32, country:FR]; FROM_NO_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; DMARC_NA(0.00)[freebsd.org]; FREEFALL_USER(0.00)[fuz]; ARC_NA(0.00)[]; FROM_NEQ_ENVFROM(0.00)[fuz@freebsd.org,fuz@fuz.su]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-arch@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; TO_DOM_EQ_FROM_DOM(0.00)[] X-Rspamd-Queue-Id: 4SYRBX0fX8z3WfF X-Spamd-Bar: ----- --4jtdsqtyO9exd7Db Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Greetings, As part of an ongoing project [1], I have written a number of SIMD-enhanced implementations of libc string functions for amd64. Unfortunately the designated reviewer is currently very busy with other stuff and does not have the time to review the code. Is anybody interested in helping? It's a lot of gnarly amd64 assembly, mostly using SSE. Here are the relevant open reviews: - https://reviews.freebsd.org/D41971 (strcmp w/ SSE) - https://reviews.freebsd.org/D41980 (strpbrk through strcspn) - https://reviews.freebsd.org/D42122 (strncmp w/ SSE) - https://reviews.freebsd.org/D42217 (strrchr w/ SSE) - https://reviews.freebsd.org/D42346 (strsep through strcspn) - https://reviews.freebsd.org/D42519 (stpncpy w/ SSE) - https://reviews.freebsd.org/D42600 (strcat through strcpy, strlen) Additional reviews may follow in the future. Any help in reviewing this code is greatly appreciated. Yours, Robert Clausecker --=20 () ascii ribbon campaign - for an 8-bit clean world=20 /\ - against html email - against proprietary attachments --4jtdsqtyO9exd7Db Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAABCgB9FiEExWcBrcoFY7LMaPxvWXxDScqS3gUFAmValUZfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEM1 NjcwMUFEQ0EwNTYzQjJDQzY4RkM2RjU5N0M0MzQ5Q0E5MkRFMDUACgkQWXxDScqS 3gVCQRAAkulhqaiAfjCuUdU6C8yaGwUbeBVebjTOYckAEvRqCTr5gLLpOpOQW4DL IQvqiRgwKLyQ0v3hcjW3rwmo/FmHQ4xljZsOrXC8731D7QyHGermJSX3SE5rNLhD PE1iN8VMqiA1bWde1yzhPf5zgnq1xX18kzHrQzwgJuWgc1Pk0QaDQkDNtUS4lM+z JZnjv3FAS0YqqV1igApXS0TjnaGec1JoAo0H9fU5qohVaX+v2VeoZccGvuK0nOIw sOFR0LOUu3t+R+7XRGsNtdFYDkMdJrjirnFzWi2JcZEfBg6CxYv1cuPMCRl7CnWh rStB2jWBYdrSmhgi+yQMEtWa0ykLdrdjXvjvYGw43IItlmpK7kPvOFOtr1u9T592 k+BSwYWvx+TV8xmnL9MtF16/us0zMezR6tYpaCw3pWdzhMp/7Y8sB1KayBVcqNJk vFEqK4DbMvsNltCn8q2SoyqgLKnSANoTMEk3ywQERkY/VmBuzg6cxLK8Nl/1zTGK FGcoGCyLexP6xHYhO61ZNBKQHSfukPYciqKt0csIs2SgqQr9zoOnzvhvorabaL7p vWuMxShpDrdt8QED4sbkJC5MOsRW7tkCJwIwaq4ZR/+D/uZhYlrvGdo3F1XLAqTC qHJ79R+kw+b1jUTnzcUEULlQ9vtnGC4CCe4i7ziQ5m4vcdgPROw= =WdT9 -----END PGP SIGNATURE----- --4jtdsqtyO9exd7Db--