From nobody Tue Feb 15 00:37:20 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 F111E19B3D95; Tue, 15 Feb 2022 00:37: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 4JyMcJ6LSwz3lv0; Tue, 15 Feb 2022 00:37:20 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644885440; 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=eaZ5UF4PUHqIXHNkgzQRU1gObuI6+0kg+GDwdf2JDYs=; b=C7npQNwVS3WhNKFQKbrhJziKrWfoCRKZp6MGnkvd5YN2tiHSXY+njiTZqpbC9iy3Y95q6Z +leUR3OUpkkjC1T0FK5tOFqnaqieMCHk+QXN/JY6fI4I0a2fUOvvH7BN77ZLo1m7SafVYc UWH4McQeiqXRiFjyuhFs3Horj6ZNYqgPVy5NHeqQ1Bx+S0O56jyOcE252Kdn1FRc2RvxA9 H6avlpkJaEC6C+VMjhSb6L3Wb3MHRx/gjR2YuWqJZ34CEIesQ2DeNPJMQyHgIGxvpXLVa3 oQRUTyewwF/YJfD5ZWJaP8Tsk6/LvD1Uo7QivfGG550AiXcFl3cPnS0Pc90CIQ== 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 B986218A3F; Tue, 15 Feb 2022 00:37:20 +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 21F0bKV3026417; Tue, 15 Feb 2022 00:37:20 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 21F0bKOV026416; Tue, 15 Feb 2022 00:37:20 GMT (envelope-from git) Date: Tue, 15 Feb 2022 00:37:20 GMT Message-Id: <202202150037.21F0bKOV026416@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Konstantin Belousov Subject: git: d0199f27c06c - stable/13 - libc binuptime(): use the right function to get the most significant bit index 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: kib X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: d0199f27c06caac4ccfedc61e8b2d13b658ea589 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1644885440; 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=eaZ5UF4PUHqIXHNkgzQRU1gObuI6+0kg+GDwdf2JDYs=; b=r+Q/DSuf5r+7DONBeudCqBkSH08cmEHBfOvEzxZMePyg/kYxV6mskR8mv7cOeM8Pn0CJpM ti9nR5KPZenDgfsHxBlw7F1e4IbXvOF7aE/IEtV80iVj8AmmuSZJBZHpBK5FzNIySoe4Dx MgFAWrifXKwC4efyLlM71WVsxQOczzKVuvJSMSKELVJHqc10abrhrTjLU1Q4TgDso8NDTS UxkGrgov8upHF/uLK9vVQPEGaAEcAeO69brdDaSnf7Drr9nLmL51PVd5k9befrKBUmJqbu /gpLvFTuxdOBZAp7oWTBvgE/CT1kox1/Nml9CuqIbdE2L7D6/NwFZSfrZRoNfQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1644885440; a=rsa-sha256; cv=none; b=Ujwo7tV/MBVo0AaFAv9FBJ7sUE59kwF2h2rmVNV+t9LYkNxenatvbxzJGZHg7l+b6TMxls h0S4zruPOCQ6iwNenCufHHmZixhZnDSRYzobeIdr6Cz/Phkj4Vh7b0Yn5RxwbIlHkjzPf8 Jp7HW1njueDK6Zavim5VEWLU0RVfVEFup8AQ6o93TA7UUyGq6cCJI5J+z4qyitZh2sxmEV 3LKjWszDghENqZd+UUKEzCsCmU/2r/67pYW8D0YEcqz1+gYj0HgvbjHGLcymqQ7tIOOoP8 FDbmQX0LkVoj0hsL3+2fC0rQ0FhgnwDVP4+cMGDy02LiNzgPjMki6yvEAPMMNQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=d0199f27c06caac4ccfedc61e8b2d13b658ea589 commit d0199f27c06caac4ccfedc61e8b2d13b658ea589 Author: Konstantin Belousov AuthorDate: 2022-02-08 19:13:40 +0000 Commit: Konstantin Belousov CommitDate: 2022-02-15 00:36:51 +0000 libc binuptime(): use the right function to get the most significant bit index PR: 261781 (cherry picked from commit a1f9326607dea5ab6979935e3ca2d7402dcc7cc1) --- lib/libc/sys/__vdso_gettimeofday.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/libc/sys/__vdso_gettimeofday.c b/lib/libc/sys/__vdso_gettimeofday.c index c1457a54d37e..cf1400cdf291 100644 --- a/lib/libc/sys/__vdso_gettimeofday.c +++ b/lib/libc/sys/__vdso_gettimeofday.c @@ -83,9 +83,9 @@ binuptime(struct bintime *bt, struct vdso_timekeep *tk, bool abs) return (error); scale = th->th_scale; #ifdef _LP64 - scale_bits = ffsl(scale); + scale_bits = flsl(scale); #else - scale_bits = ffsll(scale); + scale_bits = flsll(scale); #endif if (__predict_false(scale_bits + fls(delta) > 63)) { x = (scale >> 32) * delta;