From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 233443857B80; Tue, 13 Feb 2024 20:45:02 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 233443857B80 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1707857103; bh=TdxyvptOL9MtWpvjxm5TEXX5R78ZolkDmCzAnNthoqc=; h=From:To:Subject:Date:In-Reply-To:References:From; b=j+ztyYL9B+j/OD3lluYrOQeaVZ87ZPDe9cWYVzuDKzzz7csrZkRYQZz87aCBwb3MF 4F0j387pTUWSjXKUUSphXqKJAFqdZs1Av3RTHn/gnoy8sJwfxBCKDbZBkNuJ/0maZa kiBwPLERew8P8RmXCIa5/3t5xsd8MzWTL9JCx+lk= From: "jakub at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug c/113887] no support for %w128 length modifiers Date: Tue, 13 Feb 2024 20:45:02 +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: 14.0 X-Bugzilla-Keywords: diagnostic X-Bugzilla-Severity: normal X-Bugzilla-Who: jakub 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=3D113887 --- Comment #10 from Jakub Jelinek --- #if 42 =3D=3D ((__int128) +42wb) && -35 =3D=3D ((__int128) +-35wb) #else #warning warn #endif works with both gcc and clang if __BITINT_MAXWIDTH__ >=3D 128. That said, = for UINT128_C it would need to use __uint128_t rather than unsigned __int128, as the latt= er doesn't work in preprocessor expressions, as that is interpreted as ((0 0) +42wb) then.=