From nobody Fri May 29 19:24:00 2026 X-Original-To: bugs@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 4gRtZT50dnz6g0h8 for ; Fri, 29 May 2026 19:24:01 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gRtZS65lWz3vcb for ; Fri, 29 May 2026 19:24:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780082640; 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=0BkM9J0VzgIhA75mkhC2DtAb+JMnAcVd1R2ftLtn/98=; b=SZYKRAsJfOexmn5uaCocRGZ1lV+KQTlhVjvfhwO25Qcu2CRkEXCX+ABI6DBOVJgKzkHr2i pZJCkrZ/m8lL3B8VYwazii94ha2XgZ9WEbDpgnU2fnqNJ4Ptdr+ycZU+JQa8kLogqKplGW yd0JTUiGtCxQc2CYrreqgp2bFA+MLSiosNhp557t3knhRS48vdbf53uA4H0l7936hdYIIp cRAvfbBM5NxsITElonN7PiNYwdI4o9pTZ9iDqVWhzyp16IY8RPvQFoVnJMv4ei9/oX8MdG M+XH9SKUMqKpnRLKmjhCWmMEzFHvIpDZa85/9dpLWpxxRryynich+ki9ogwFCA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780082640; a=rsa-sha256; cv=none; b=SH/JAfBLDoXpCEfp99xD+n7G1+agTbuENTRgCz3i9lyyvPk/tmQiM8oSTGN7+2HV7FiH+r TKZI4jC/sVeOx6buI72/RSP7HhJwU0wYjH5AayCnyu0IZVn3nk/WcORQq8l5YO9S61206S Dbgb2D0RjaO52oQ4uVyp0f1rRY228GX9cdvGHaXvt6riDEGbW/gyQaJ/9D7JT/XrMdXY+0 t/pyMA2VkdktpxWMNS7NBJuqnL8jqhY9W5eJdcZEXBrwK8NG/VhXlRzuAuabAMlPabkWx1 skLl+6mxFX1+rCnTA11V/dKPdwQPyVpW1QGFWjvj6V4G5R//UykuVZ5waURO6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780082640; 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=0BkM9J0VzgIhA75mkhC2DtAb+JMnAcVd1R2ftLtn/98=; b=RkxlLs/leARs4yK/JZ1kScX86HSrsv+uH9GYHSYs/5eRpdHCHyU4cXjKX5aPiXTM5ofcgt xt1BaOGlH5kV8+nvIJgkEyn5oOzdkcI4+LINHzpezoI4rBXzh3iM8Y0lqbBbBsKFHiY727 kvKjQoUXRKHT2J3ujd+2vJ8zuqm8b8kvDD5Wva4fbJ2J4EdlQRA1nuUmZoERFzWG5OR0M6 ytOGv7v5Nh5o5hXzcN5LAB+yYNYKNWNel2wSBghvAkYTdHqol1ldBlLhRvMAE+0Ij/hfDn FA9QuLtNSxQ4/8DO6KbQsJ9NN8bbuv5E3JVVXqUT36Q2wLdCht/CMRHJGa6QUw== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4gRtZS5ZzGzn3V for ; Fri, 29 May 2026 19:24:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 64TJO0DQ023146 for ; Fri, 29 May 2026 19:24:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 64TJO0r5023145 for bugs@FreeBSD.org; Fri, 29 May 2026 19:24:00 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 295706] [libm] Fix up for recent rsqrt[fl] functions. Date: Fri, 29 May 2026 19:24:00 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Only Me X-Bugzilla-Who: kargl@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter attachments.created Message-ID: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D295706 Bug ID: 295706 Summary: [libm] Fix up for recent rsqrt[fl] functions. Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: kargl@FreeBSD.org Created attachment 271330 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D271330&action= =3Dedit Patch to correct rounding and a few comments. Paul Zimmermann (of Core-Math and MPFR fame) graciously tested the recently committed rsqrt[fl]() functions. He identified 127 incorrectly rounded values for rsqrtf() in round-to-nearest mode. This patch fixes the rounding in RN. Exhaustive testing now shows that rsqrtf() is corrected rounded for RN. He also tested rsqrt() and rsqrtl() in the interval [1,4). Both appear to be correctly rounded. Finally, the patch includes small changes to comments. A concise list of changes is * lib/msun/src/s_rsqrt.c: . Fix comments. * lib/msun/src/s_rsqrtf.c=20 . Fix comments. . Exhaustive testing by Paul Zimmermann found 127 incorrectly rounded values in round-to-nearests. These gave have the=20 form 0x1.13e07pN with N an odd integer. With this patch, all values are now correctly rounded in round-to-nearest. * lib/msun/src/s_rsqrtl.c . Fix comments. . Move all variable declarations to top of function and sort. --=20 You are receiving this mail because: You are the assignee for the bug.=