Skip to content

Commit c3185c3

Browse files
committed
nit
1 parent 8f3e7c3 commit c3185c3

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

libc/include/llvm-libc-types/cfloat128.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ typedef _Complex _Float128 cfloat128;
3535
typedef _Complex __float128 cfloat128;
3636
#elif (LDBL_MANT_DIG == 113)
3737
#define LIBC_TYPES_HAS_CFLOAT128
38+
#define LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE
3839
typedef _Complex long double cfloat128;
3940
#endif
4041

libc/src/__support/complex_type.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ template <> struct make_complex<float16> {
3737
};
3838
#endif
3939
#if defined(LIBC_TYPES_HAS_CFLOAT128)
40-
#if (LDBL_MANT_DIG != 113)
40+
#if !(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128)
4141
template <> struct make_complex<float128> {
4242
using type = cfloat128;
4343
};
@@ -64,7 +64,7 @@ template <> struct make_real<cfloat16> {
6464
};
6565
#endif
6666
#if defined(LIBC_TYPES_HAS_CFLOAT128)
67-
#if (LDBL_MANT_DIG != 113)
67+
#if !(LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE)
6868
template <> struct make_real<cfloat128> {
6969
using type = float128;
7070
};

0 commit comments

Comments
 (0)