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