Re: IEEE Interchange floating point and extended floating point for C++

2021-03-15 Thread Jonathan Wakely via Gcc
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 add

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-15 Thread Sjoerd Meijer via Gcc
with _Float16 and others could be added later if required? Cheers, Sjoerd. From: Jonathan Wakely Sent: 12 March 2021 22:03 To: Joseph Myers Cc: Sjoerd Meijer ; Kito Cheng ; GCC Subject: Re: IEEE Interchange floating point and extended floating point for C++

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Mar 2021, 21:55 Joseph Myers, wrote: > On Fri, 12 Mar 2021, Jonathan Wakely via Gcc wrote: > > > I see less value in adding additional distinct types that don't add > > anything you can't already do. _Float16 gives you access to an entirely > new > > data type. _Float32 just complicate

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Joseph Myers
On Fri, 12 Mar 2021, Jonathan Wakely via Gcc wrote: > I see less value in adding additional distinct types that don't add > anything 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 So would you then supp

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Mar 2021, 18:14 Joseph Myers, wrote: > On Fri, 12 Mar 2021, Joseph Myers wrote: > > > On Fri, 12 Mar 2021, Jonathan Wakely wrote: > > > > > On Fri, 12 Mar 2021 at 12:26, Sjoerd Meijer via Gcc > wrote: > > > > So here's finally my concrete question: what do we think about > making _Flo

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Joseph Myers
On Fri, 12 Mar 2021, Joseph Myers wrote: > On Fri, 12 Mar 2021, Jonathan Wakely wrote: > > > On Fri, 12 Mar 2021 at 12:26, Sjoerd Meijer via Gcc wrote: > > > So here's finally my concrete question: what do we think about making > > > _Float16 available in C++ mode? > > > > I think GCC should d

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Joseph Myers
On Fri, 12 Mar 2021, Jonathan Wakely wrote: > On Fri, 12 Mar 2021 at 12:26, Sjoerd Meijer via Gcc wrote: > > So here's finally my concrete question: what do we think about making > > _Float16 available in C++ mode? > > I think GCC should do it. What about types with the same format as an exist

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Jonathan Wakely via Gcc
On Fri, 12 Mar 2021 at 12:26, Sjoerd Meijer via Gcc wrote: > So here's finally my concrete question: what do we think about making > _Float16 available in C++ mode? I think GCC should do it.

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Sjoerd Meijer via Gcc
Hello GCC, Greetings from Clang community! :-) I implemented _Float16 support in Clang. On the Clang mailing list the request was made if we could rebrand __fp16 to a native half-precision type in Clang, but only for RISC-V. I objected to that for a few different reasons, and learned that the m

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-12 Thread Jonathan Wakely via Gcc
On Thu, 11 Mar 2021 at 15:32, Joseph Myers wrote: > > On Thu, 11 Mar 2021, Kito Cheng wrote: > > > 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 extensio

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Kito Cheng via Gcc
Hi Joseph: > I don't know if C++ has reached any conclusions about what form C++ > support for such types should take, but my expectation was that something > library-based, similar to the support for decimal floating-point types, > might be used. Thanks, my understanding is that we are not inten

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Kito Cheng via Gcc
Hi Jonathan: Thanks for providing that information! On Fri, Mar 12, 2021 at 12:17 AM Jonathan Wakely via Gcc wrote: > > On Thu, 11 Mar 2021 at 15:14, Jonathan Wakely wrote: > > > > On Thu, 11 Mar 2021 at 15:07, Gabriel Ravier via Gcc > > wrote: > > > > > > On 3/11/21 1:56 PM, Jonathan Wakely

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Jonathan Wakely via Gcc
On Thu, 11 Mar 2021 at 15:14, Jonathan Wakely wrote: > > On Thu, 11 Mar 2021 at 15:07, Gabriel Ravier via Gcc wrote: > > > > On 3/11/21 1:56 PM, Jonathan Wakely via Gcc wrote: > > > On Thu, 11 Mar 2021 at 09:43, Kito Cheng via Gcc wrote: > > >> Hi: > > >> > > >> Would it be possible to support in

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Jonathan Wakely via Gcc
On Thu, 11 Mar 2021 at 15:07, Gabriel Ravier via Gcc wrote: > > On 3/11/21 1:56 PM, Jonathan Wakely via Gcc wrote: > > 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++,

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Joseph Myers
On Thu, 11 Mar 2021, Kito Cheng wrote: > 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++? I don't know if C++ has reached any conclusions ab

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Gabriel Ravier via Gcc
On 3/11/21 1:56 PM, Jonathan Wakely via Gcc wrote: 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 fro

Re: IEEE Interchange floating point and extended floating point for C++

2021-03-11 Thread Jonathan Wakely via Gcc
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