From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 877A338432D6; Thu, 24 Nov 2022 09:39:12 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 877A338432D6 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1669282752; bh=+dLfoES6pFriJ1XmOhpcllFR6JsI+7Ur5vFHa8bAOBo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=YFxCg4QS8NX3IxXjYG8i+VjMCq64DKbyAPaGaEw274yuPye76d28tvUQ1JTFb/oGh SXW+BRw8R2milmUEU+dvvSggwMjae6InRjIaK8orjkGlOsOEvROoIRyUwliRQXejIl GkvEucZXnTiaZQLqnkv4hBfTjYOokJ52VbOw0n8s= From: "cvs-commit at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/107468] std::from_chars doesn't always round to nearest Date: Thu, 24 Nov 2022 09:39:12 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: cvs-commit at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D107468 --- Comment #5 from CVS Commits --- The master branch has been updated by Jakub Jelinek : https://gcc.gnu.org/g:ec73b55c75baa16c1cf7482fa65928a8d45598d4 commit r13-4285-gec73b55c75baa16c1cf7482fa65928a8d45598d4 Author: Jakub Jelinek Date: Thu Nov 24 10:38:42 2022 +0100 libstdc++: Another merge from fast_float upstream [PR107468] Upstream fast_float came up with a cheaper test for fegetround () =3D=3D FE_TONEAREST using one float addition, one subtrac= tion and one comparison. If we know we are rounding to nearest, we can use fast path in more cases as before. The following patch merges those changes into libstdc++. 2022-11-24 Jakub Jelinek PR libstdc++/107468 * src/c++17/fast_float/MERGE: Adjust for merge from upstream. * src/c++17/fast_float/fast_float.h: Merge from fast_float 2ef9abbcf6a11958b6fa685a89d0150022e82e78 commit.=