From nobody Thu Jul 6 18:35:10 2023 X-Original-To: dev-commits-src-main@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 4QxlZQ5F5sz4m6Fr; Thu, 6 Jul 2023 18:35:10 +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 4QxlZQ4qcyz3skd; Thu, 6 Jul 2023 18:35:10 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688668510; 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=5gzO+RmtyOwedlxlxF1HDi/7a1mhYV0EZAtLnOZOVxw=; b=ltO+YHxmhPBID63xYDZL7tUEu7LVrXExbrldDfRxUalvuCe2MGb51O1qq1OZOQj3hLF9e5 MkUMxv27u65YRAEczXnt8WY2BEutcm/pMYipn4tZQeZPMqcSHZ9rHfH4MAtCWmnQxf5qgU 8LJa1Bu32aMksD0/RjVSLCnBx0ysCZ/OzVEdkOm4PtN4pdpyWd541LAFbG8l4m/CcBIQcn 2Bwdl2o6EvCLvY32XSRZrDGgqbttbTYWuADFpuOcHZ3ynUaWLRQs0b87LVB169cwqPVdbN QpV0c3eK+v7IJ/WR8W0ONXzOABGE9IEYA1ozjPvstRKD7m0876vleEE9BxRKwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1688668510; 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=5gzO+RmtyOwedlxlxF1HDi/7a1mhYV0EZAtLnOZOVxw=; b=TNGDV2saNaRMgBJN7vF6UWLsO7cXUiiMU+Kf8o9m7KWGqopS3jedQNa+NhZCsMtLp7f6Xl 5TSVidMLC4uYPJcJpftWyQjSmkgGvb4/AQwhGfxhRSBJTC0IjrqOFM4QuqTFtYYy3N9IIA eK3rds8qT+JD0l5I+kAWOgsdY97OgPNPP5aRKAdZw6ha+8NFX1Za71yX0ZlXjK7/I61OL0 ikO7j9Qr1/3WyN4TJcs3Mg4FgJxAZ+dRy3/VjTaxbTPvQNCUzHopWN4LD4j9ajfjhm5+JG G+qjnx1Ohr0TZLeneGZVghwy/mgMK6l2dr38YPk8o6xMuhVDshE1KcGxBQ5M8w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1688668510; a=rsa-sha256; cv=none; b=dzz7LMBzpEu+/BBgDT2Mumqvt4dhg2rUhXOmmMBnxJYVog1gf7nLCGLLL2xRC5hNBvDT5t u0zuy0M3yrKxPTsAwxSnDLatYSgKxX5sN3HUsxJhDksEmDFd69ke3HjP0fbTL7LobMHwYW g9rlsA17hx/LzeXiaj3yS3vtZP7gnbGi79LrG9JAyv/B58Lnz8V0J4Jhc5JksxhrWLBnjK 435sYxwedp4CFuHZjSx79lVcilh6ndn/2maCBu55YIGCJphwhsXKnrVWFS1vI0qDIVpvka cIZBVXLddGhzC4zMX6t5FHvuB/Uiw1p8J+Bq77ik5079YwiJIiNnN8CnJFwqkQ== 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 4QxlZQ3v6Xz16vd; Thu, 6 Jul 2023 18:35:10 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 366IZAMc097384; Thu, 6 Jul 2023 18:35:10 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 366IZAg8097383; Thu, 6 Jul 2023 18:35:10 GMT (envelope-from git) Date: Thu, 6 Jul 2023 18:35:10 GMT Message-Id: <202307061835.366IZAg8097383@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Doug Moore Subject: git: 6419ed7ee7d0 - main - inline_fls: drop compile-time check List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: dev-commits-src-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: dougm X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 6419ed7ee7d0580b061b5913b05695ccd47fe81e Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by dougm: URL: https://cgit.FreeBSD.org/src/commit/?id=6419ed7ee7d0580b061b5913b05695ccd47fe81e commit 6419ed7ee7d0580b061b5913b05695ccd47fe81e Author: Doug Moore AuthorDate: 2023-07-06 18:32:59 +0000 Commit: Doug Moore CommitDate: 2023-07-06 18:32:59 +0000 inline_fls: drop compile-time check HAVE_INLINE_FLSLL is #defined always. This change assumes that where __HAVE_INLINE_FLSLL is tested, the two leading underscores are a mistake, and that the code will be better for using the efficient flsll implementation. Reviewed by: markj, mhorne Differential Revision: https://reviews.freebsd.org/D40705 --- sys/kern/kern_resource.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index b1ce9526d4cc..b030c0552cc9 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -885,11 +885,6 @@ rufetchtd(struct thread *td, struct rusage *ru) calcru1(p, &td->td_rux, &ru->ru_utime, &ru->ru_stime); } -/* XXX: the MI version is too slow to use: */ -#ifndef __HAVE_INLINE_FLSLL -#define flsll(x) (fls((x) >> 32) != 0 ? fls((x) >> 32) + 32 : fls(x)) -#endif - static uint64_t mul64_by_fraction(uint64_t a, uint64_t b, uint64_t c) {