From owner-dev-commits-src-all@freebsd.org Sat Jan 30 00:13:43 2021 Return-Path: Delivered-To: dev-commits-src-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 26CAC4FD8F4; Sat, 30 Jan 2021 00:13:43 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: from sdaoden.eu (sdaoden.eu [217.144.132.164]) (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 mx1.freebsd.org (Postfix) with ESMTPS id 4DSF6t74Ztz4crH; Sat, 30 Jan 2021 00:13:42 +0000 (UTC) (envelope-from steffen@sdaoden.eu) Received: by sdaoden.eu (Postfix, from userid 1000) id E718216057; Sat, 30 Jan 2021 01:13:34 +0100 (CET) Date: Sat, 30 Jan 2021 01:13:34 +0100 From: Steffen Nurpmeso To: Jessica Clarke Cc: Mateusz Guzik , "src-committers@freebsd.org" , "dev-commits-src-all@freebsd.org" , "dev-commits-src-main@freebsd.org" Subject: Re: git: 710e45c4b853 - main - Reimplement strlen Message-ID: <20210130001334.riY1-%steffen@sdaoden.eu> In-Reply-To: References: <202101292348.10TNmV8Z022427@gitrepo.freebsd.org> User-Agent: s-nail v14.9.21-98-g07264876 OpenPGP: id=EE19E1C1F2F7054F8D3954D8308964B51883A0DD; url=https://ftp.sdaoden.eu/steffen.asc; preference=signencrypt BlahBlahBlah: Any stupid boy can crush a beetle. But all the professors in the world can make no bugs. X-Rspamd-Queue-Id: 4DSF6t74Ztz4crH X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[] X-BeenThere: dev-commits-src-all@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Commit messages for all branches of the src repository List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 Jan 2021 00:13:43 -0000 Jessica Clarke wrote in : |On 29 Jan 2021, at 23:48, Mateusz Guzik wrote: |> |> The branch main has been updated by mjg: |> |> URL: https://cgit.FreeBSD.org/src/commit/?id=710e45c4b8539d028877769f1a4\ |> ec088c48fb5f1 |> |> commit 710e45c4b8539d028877769f1a4ec088c48fb5f1 |> Author: Mateusz Guzik |> AuthorDate: 2021-01-29 21:48:11 +0000 |> Commit: Mateusz Guzik |> CommitDate: 2021-01-29 23:48:26 +0000 |> |> Reimplement strlen | |This really should have gone through code review. Out of topic: i seem to recall to have seen these masks and similar code (with predictions) in the Linux kernel about 20 years ago. I admire people who grasp and wrap their heads around such maths on the fly. I tend to forget it again and again. Mind you, cycling two days ago over across the small hill i landed in winter, today it was all melted and the sheeps adored it. --steffen | |Der Kragenbaer, The moon bear, |der holt sich munter he cheerfully and one by one |einen nach dem anderen runter wa.ks himself off |(By Robert Gernhardt)