On Mon, 11 Nov 2024, Jakub Jelinek wrote:

> Hi!
> 
> C23 roughly says that {d,D}{32,64,128} floating point constant suffixes
> are alternate spellings of {df,dd,dl} suffixes in annex H.
> 
> So, the following patch allows that alternate spelling.

This is OK.

> Or is it intentional it isn't enabled and we need to do everything in
> there first before trying to define __STDC_IEC_60559_DFP__?
> Like add support for _Decimal32x and _Decimal64x types (including
> the d32x and d64x suffixes) etc.

It's reasonable to add support incrementally rather than needing to add 
everything at once.

There is no such type as _Decimal32x, just _Decimal64x (required in Annex 
H) and _Decimal128x (optional).

__STDC_IEC_60559_DFP__ is one of those predefined macros for a combination 
of language and library features (i.e. one for stdc-predef.h, given both 
language and library support - and libdfp, if that's what you use for DFP 
features (see also 
<https://sourceware.org/pipermail/libc-alpha/2019-September/106579.html>), 
is a long way from supporting all of the features more recent than TR 
24732:2009).  It does not require Annex H features unless 
__STDC_IEC_60559_TYPES__ is defined as well.

-- 
Joseph S. Myers
josmy...@redhat.com

Reply via email to