From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 169993858D28; Sat, 6 May 2023 22:57:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 169993858D28 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1683413860; bh=e8ghbFysX8xNEbWpLp6KJsPYbMhI25sl/lsQFr7WfMY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=At7GNTVlOWsf4a/I4Ku1tpKJkkKDk1un2NzKz8pHF+jPwd1jTccjQ/KLA6a3PHfeu TEmbTGytV1PDg/AvWrTcywNDQ73D+m7sESDrxfYadgxHb45BAnOJsC5dftAF0qpsU1 6b3/lpVd/ZP/lJV6D6w6X7iSMPbM2n36gVN8+RTw= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/109758] std::abs(__float128) doesn't support NaN Date: Sat, 06 May 2023 22:57:39 +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: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: redi 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=3D109758 --- Comment #4 from Jonathan Wakely --- (In reply to g.peterhoff from comment #3) > >> libstdc++ doesn't depend on libquadmath and the __float128 support is = there very limited. > Yes, exactly. There should be nothing of quadmath in the std implementati= ons > of C/C++. But in bits/std_abs.h this is the case. I'm not sure what you mean. There is nothing from libquadmath there, what a= re you referring to as "quadmath"? Just any use of 128-bit floating-point type= s? > >> Use std::float128_t instead (in GCC 13.1)? > std::float128_t can only be used from C++23 on, but quadmath can also be > used with older standard/compiler versions. Again, what do you mean by "quadmath"?=