From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) by sourceware.org (Postfix) with ESMTPS id 71AA33858D29 for ; Mon, 15 Mar 2021 10:20:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 71AA33858D29 Received: by mail-wr1-x42f.google.com with SMTP id l11so8376148wrp.7 for ; Mon, 15 Mar 2021 03:20:58 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=BBWqZSVR3GsAQ6dn1AxRXJmVk5MgbF/PBF0XLuBXArU=; b=m9Sck3dZXXlMx7HUdNO4iwBhHpz2Tk6kwzJsgmx/aD/9Oj7/F2MLlgGlQUT+lqcDgw fy9lSIhMQ6QQTWMxUlFzc7hEUcIXdnCBNYcuiGL8BVhAxDrOYbhp4IKkZOPlRRbrRYKz htKGzCBJJZsu55VqbAZL0uoqldmF4ZN/JxeGld5Eej0wt2MNYsi9Rcret+CLBGqEfv0S dc8IudgDqDQyZfF0cQURecnXThSDrOXLIX0/KyhvnMbIAWeZvaTVk/d53+9gGk0rZelw Q0lpmpqUGhCLr9frWAuPuUn8Mz/njbk9lHV9twzy8a1rErfoS1CeNVThOews4mbAbc7+ xcCg== X-Gm-Message-State: AOAM531TFDhMmqGYRXSiWHBvv8bw1XgYGRfwh6bR60LCi+6dh4csqB4p RBkDDPqbyd1We7Kemzn6HIehf1lrHhSY/ZIlFao= X-Google-Smtp-Source: ABdhPJyOsacdXHgxVOi45NcbsG5uxaBkzGU7c7Wcix1yzcrT/4L3gNl+YAEBqoL7p6igKACZFP3U2pwA7l/ML4O0Ur8= X-Received: by 2002:a5d:4445:: with SMTP id x5mr27112733wrr.30.1615803657331; Mon, 15 Mar 2021 03:20:57 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Mon, 15 Mar 2021 10:20:46 +0000 Message-ID: Subject: Re: IEEE Interchange floating point and extended floating point for C++ To: Sjoerd Meijer Cc: Joseph Myers , Kito Cheng , GCC Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 15 Mar 2021 10:20:59 -0000 On Mon, 15 Mar 2021 at 10:17, Sjoerd Meijer wrote: > > Many thanks for your replies and thoughts on this. > > I wanted to add that I agree with this, and say that this is the > current state in Clang (exactly because of the reason that > _Float16 is entirely new): > > I see less value in adding additional distinct types that don't add anyth= ing you can't already do. _Float16 gives you access to an entirely new data= type. _Float32 just complicates overloading of it's a new type with the sa= me representation as an existing one. With the proposed std::float32 typede= f for C++ users will still be able to write code that definitely uses an IE= EE binary32 type without needing a new type to be introduced. ISTM that wha= t users really want is "a type guaranteed to be IEEE binary32" and whether = that is float or _Float32 is mostly irrelevant. > > And isn't the good news that this is all fairly orthogonal > and a start could be made with _Float16 and others could be > added later if required? Yes, so I think that is the right incremental step forwards for C++.