From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 97C67385B507; Fri, 24 Feb 2023 23:21:41 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 97C67385B507 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1677280901; bh=TGXG7t5P7wlmhPBEzZk0HdzKU2wmucwHJ32v3XI9NCI=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SfAOUlitd+liL1IfnaYGU7g8+YumUcjwpeIaHr5bNUQ334dXTXKWGZ24cJ1peOOP4 ABqRlcWq8lwvtCHLSSyxbIORoP6qJMD8A7Nuy17QoGvLB/awOtgSejUymCF4m65X8A usghbtqYK5MVatz+VocDW/11SSqDnRgRN6GQvjUQ= From: "pedro at palves dot net" To: gdb-prs@sourceware.org Subject: [Bug exp/20991] __int128 type support Date: Fri, 24 Feb 2023 23:21:41 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: exp X-Bugzilla-Version: HEAD X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pedro at palves dot net X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot 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://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D20991 --- Comment #15 from Pedro Alves --- That may be true. If we can make valarith.c:scalar_binop work for any kind of fixed-precision type instead of doing host arithmetic on LONGEST, w= ith the precision being a runtime property, then we would get most of value arithmetic done for all types, including types wider than 128 bits when they come. It still seems to me though like if we need to implement the fixed-precision logic, we might as well consider factoring it out to an integer class. That type may be based on wide-int, some other integer template (there are plenty such templates around we could borrow), or a wrapper around GMP (or a fixed-precision wrapper around our C++ GMP infinite-precision wrapper). --=20 You are receiving this mail because: You are on the CC list for the bug.=