Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions libc/src/__support/complex_type.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,12 @@ template <> struct make_complex<float16> {
using type = cfloat16;
};
#endif
#if defined(LIBC_TYPES_HAS_CFLOAT128)
#if !(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128)
#if defined(LIBC_TYPES_HAS_CFLOAT128) && \
!defined(LIBC_TYPES_LONG_DOUBLE_IS_FLOAT128)
template <> struct make_complex<float128> {
using type = cfloat128;
};
#endif
#endif

template <typename T> using make_complex_t = typename make_complex<T>::type;

Expand All @@ -63,13 +62,12 @@ template <> struct make_real<cfloat16> {
using type = float16;
};
#endif
#if defined(LIBC_TYPES_HAS_CFLOAT128)
#if !(LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE)
#if defined(LIBC_TYPES_HAS_CFLOAT128) && \
!defined(LIBC_TYPES_CFLOAT128_IS_COMPLEX_LONG_DOUBLE)
template <> struct make_real<cfloat128> {
using type = float128;
};
#endif
#endif

template <typename T> using make_real_t = typename make_real<T>::type;

Expand Down
Loading