From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A5A163858D33; Wed, 17 Jan 2024 17:51:10 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A5A163858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1705513870; bh=y/LdQYKUpFGh8NKpv6hfwJD1xUrcI3O2O6coAEH+kgk=; h=From:To:Subject:Date:In-Reply-To:References:From; b=phy0tsqKfhUFpqR6+51srQSdsH56budOiVx0R9SLfqBPYpmZtKULJGy8eTIlkvPr4 F8UccGDASU8uCZMRFCSLTHS3ANjeK35FVWpvugwLpHDBfxWe8AwZqcAx6+Lc49MDeM mztJwZmAr9b/6RxXjW84+qo4XZ1jLW/jrVDTecmY= From: "jsm28 at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113455] ROUNDING: IEEE Standard: Missing decimal rounding mode 'nearest, ties away from zero' for decimalxxx datatypes. Date: Wed, 17 Jan 2024 17:51:10 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: c X-Bugzilla-Version: 13.2.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: jsm28 at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED 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=3D113455 --- Comment #1 from Joseph S. Myers --- The decimal rounding mode is set with fe_dec_setround. libdfp provides that function and an fenv.h wrapper with constant definitions including FE_DEC_TONEARESTFROMZERO. Providing that library is outside the scope of G= CC; see https://sourceware.org/pipermail/libc-alpha/2019-September/106579.html = for a discussion of considerations for any integration of such support directly= in glibc (which would certainly be a lot of work). libdfp is at https://github.com/libdfp/libdfp but doesn't have that much activity.=