From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by sourceware.org (Postfix) with ESMTPS id 6F47E3834422 for ; Thu, 11 Mar 2021 12:57:04 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 6F47E3834422 Received: by mail-wr1-x435.google.com with SMTP id a18so1724538wrc.13 for ; Thu, 11 Mar 2021 04:57:04 -0800 (PST) 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; bh=2ezxr3fZDZMWx1NWJ4aZeCZRzMcHZFUljKBjyj4/CPk=; b=NEAOXGY3Z5zHCQABOo3yEac/MgLOJ4UepeHA1qqL2h4q8a4BeBEn76Q2wNyltH82Ta lgIUODI3yVKjZ9vH8C13pLAFfu17ZTnju5WYAkvntxXeam7+ymCheiLune1VyinjEaSg WlarmqPYHMeE9dFQ0IcQUBdgQYx5j7C6g9ogj8b4NUpD8MsOdQXCkKLaZdN4p5w0Ht4d IcOXdohhnE7fMFKNmjRjwSyzcnCFvP+wxQzgs1HDx5HduHFLBsRMhrHikz7vXgrnfK2R 6v/SODJr/O4RpNZcwMXgAcKyDr6ITImF160ryDe2C1u8rmJ60k/rLT5YWNTV5m2T+bgq gJfw== X-Gm-Message-State: AOAM533bO4yLty4VhMrHtYFjLDjbjjTeQXmNOIUPUxuEptjRrY50Dk8D LMmqUl2ZVEMZSO3O47uJ/IaZj2F77I3OWFfNcXE= X-Google-Smtp-Source: ABdhPJyjo91thZffLsu3tm38+FtoPMouT7hTzbJzbe/l4VOv8HZ3hrDG42Y0B/QC1IrudpOmirmo5JLhzmDp6nOE5Vs= X-Received: by 2002:a5d:400f:: with SMTP id n15mr8316559wrp.89.1615467423452; Thu, 11 Mar 2021 04:57:03 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Jonathan Wakely Date: Thu, 11 Mar 2021 12:56:51 +0000 Message-ID: Subject: Re: IEEE Interchange floating point and extended floating point for C++ To: Kito Cheng Cc: GCC , "Joseph S. Myers" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_SHORT, 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: Thu, 11 Mar 2021 12:57:06 -0000 On Thu, 11 Mar 2021 at 09:43, Kito Cheng via Gcc wrote: > > Hi: > > Would it be possible to support interchange floating point and/or > extended floating point for C++, which is introduced by ISO/IEC TS > 18661-3? > > I've read the note about C++ support from the initial commit log[1], > so I know there is some concern about C++ support for that, is it > possible to enable that for C++ like a language extension for C++? > > The main demand comes from the data type for half-precision, ISO/IEC > TS 18661-3 is the only common spec which supports half-precision and > both GCC and clang are supported. > > However it can't be used on C++ for GCC, so it's hard to use that as a > workable solution for half-precision data types. > > Or maybe ISO/IEC JTC1 SC22 WG14 N2016[2] is a better way for > half-precision data types? See https://wg21.link/p1467 and https://wg21.link/p1467 for the relevant C++ proposals.