File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ typedef _Complex _Float128 cfloat128;
35
35
typedef _Complex __float128 cfloat128 ;
36
36
#elif (LDBL_MANT_DIG == 113 )
37
37
#define LIBC_TYPES_HAS_CFLOAT128
38
+ #define LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE
38
39
typedef _Complex long double cfloat128 ;
39
40
#endif
40
41
Original file line number Diff line number Diff line change @@ -37,10 +37,12 @@ template <> struct make_complex<float16> {
37
37
};
38
38
#endif
39
39
#if defined(LIBC_TYPES_HAS_CFLOAT128)
40
+ #if !(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128)
40
41
template <> struct make_complex <float128> {
41
42
using type = cfloat128;
42
43
};
43
44
#endif
45
+ #endif
44
46
45
47
template <typename T> using make_complex_t = typename make_complex<T>::type;
46
48
@@ -62,10 +64,12 @@ template <> struct make_real<cfloat16> {
62
64
};
63
65
#endif
64
66
#if defined(LIBC_TYPES_HAS_CFLOAT128)
67
+ #if !(LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE)
65
68
template <> struct make_real <cfloat128> {
66
69
using type = float128;
67
70
};
68
71
#endif
72
+ #endif
69
73
70
74
template <typename T> using make_real_t = typename make_real<T>::type;
71
75
You can’t perform that action at this time.
0 commit comments