|
13 | 13 |
|
14 | 14 | // Currently, the complex variant of C23 `_Float128` type is only defined as a |
15 | 15 | // built-in type in GCC 7 or later, and only for C. For C++, or for clang, |
16 | | -// the complex variant of `__float128` is defined instead, and only on x86-64 targets. |
| 16 | +// the complex variant of `__float128` is defined instead, and only on x86-64 |
| 17 | +// targets. |
17 | 18 | // |
18 | 19 | // TODO: Update the complex variant of C23 `_Float128` type detection again when |
19 | 20 | // clang supports it. |
20 | 21 | // https://github.com/llvm/llvm-project/issues/80195 |
21 | | -#if defined(__STDC_IEC_60559_BFP__) && !defined(__clang__) && \ |
| 22 | +#if defined(__STDC_IEC_60559_COMPLEX__) && !defined(__clang__) && \ |
22 | 23 | !defined(__cplusplus) |
23 | 24 | #define LIBC_TYPES_HAS_CFLOAT128 |
24 | 25 | typedef _Complex _Float128 cfloat128; |
25 | 26 | #elif defined(__FLOAT128__) || defined(__SIZEOF_FLOAT128__) |
26 | | -// Use _Complex __float128 type. gcc and clang sometime use __SIZEOF_FLOAT128__ to |
27 | | -// notify the availability of __float128. |
28 | | -// clang also uses __FLOAT128__ macro to notify the availability of __float128 |
29 | | -// type: https://reviews.llvm.org/D15120 |
| 27 | +// Use _Complex __float128 type. gcc and clang sometime use __SIZEOF_FLOAT128__ |
| 28 | +// to notify the availability of __float128. clang also uses __FLOAT128__ macro |
| 29 | +// to notify the availability of __float128 type: |
| 30 | +// https://reviews.llvm.org/D15120 |
30 | 31 | #define LIBC_TYPES_HAS_CFLOAT128 |
31 | 32 | typedef _Complex __float128 cfloat128; |
32 | 33 | #elif (LDBL_MANT_DIG == 113) |
|
0 commit comments