C++ Logo

liaison

Advanced search

Re: [wg14/wg21 liaison] [isocpp-ext] Report from the recent C/C++ liaison meeting (SG22); includes new floating point types(!)

From: Aaron Ballman <aaron_at_[hidden]>
Date: Wed, 15 Sep 2021 14:38:27 -0400
On Wed, Sep 15, 2021 at 2:27 PM Jens Maurer via Ext
<ext_at_[hidden]> wrote:
>
> On 15/09/2021 20.12, Joseph Myers via Liaison wrote:
> > On Wed, 15 Sep 2021, Thomas Köppe via Liaison wrote:
> >
> >> - Currently, the new types are *exclusively* available in the
> >> _Reserved_name spelling (like "_Bool" was in C99), there is no set of
> >> "pretty" macros (like "bool" was in <stdbool.h>) -- that means that if C++
> >> decides to introduce new pretty names like (std::)float16_t, we have no
> >> immediately interoperable name (like "float16_t") that would be valid C,
> >> since there is no macro "#define float16_t _Float_16", say.
> >
> > Also, note that C *does* have typedef names such as _Float16_t - that's a
> > type whose range and precision are used for evaluating operations on type
> > _Float16, analogous to float_t and double_t.
> >
> > I suggest it would be confusing for float16_t to mean something different
> > from _Float16_t, and so float16_t may not be a good name to use to mean
> > _Float16 in C++.
>
> Is there an actual document that specifies exactly what
> the additional C floating-point support is?
>
> The TS does not seem to be freely available.

http://www.open-std.org/jtc1/sc22/wg14/www/projects#18661 lists the
latest drafts before they were rolled into the TS.

~Aaron

Received on 2021-09-15 13:38:46