Skip to content

Commit e769743

Browse files
committed
remove F16 and F128
1 parent 4078236 commit e769743

File tree

2 files changed

+1
-24
lines changed

2 files changed

+1
-24
lines changed

libc/src/__support/CPP/type_traits/is_complex.h

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,16 +28,7 @@ template <typename T> struct is_complex {
2828
public:
2929
LIBC_INLINE_VAR static constexpr bool value =
3030
__is_unqualified_any_of<T, _Complex float, _Complex double,
31-
_Complex long double
32-
#ifdef LIBC_TYPES_HAS_FLOAT16
33-
,
34-
_Complex _Float16
35-
#endif
36-
#ifdef LIBC_TYPES_HAS_FLOAT128
37-
,
38-
_Complex __float128
39-
#endif
40-
>();
31+
_Complex long double>();
4132
};
4233
template <typename T>
4334
LIBC_INLINE_VAR constexpr bool is_complex_v = is_complex<T>::value;

libc/test/UnitTest/FPMatcher.h

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,6 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
128128
return matchComplex<double>();
129129
else if (cpp::is_complex_type_same<T, _Complex long double>())
130130
return matchComplex<long double>();
131-
#ifdef LIBC_TYPES_HAS_FLOAT16
132-
else if (cpp::is_complex_type_same<T, _Complex _Float16>())
133-
return matchComplex<float16>();
134-
#endif
135-
#ifdef LIBC_TYPES_HAS_FLOAT128
136-
return matchComplex<float128>();
137-
#endif
138131
}
139132

140133
void explainError() override {
@@ -144,13 +137,6 @@ template <typename T, TestCond Condition> class CFPMatcher : public Matcher<T> {
144137
return explainErrorComplex<double>();
145138
else if (cpp::is_complex_type_same<T, _Complex long double>())
146139
return explainErrorComplex<long double>();
147-
#ifdef LIBC_TYPES_HAS_FLOAT16
148-
else if (cpp::is_complex_type_same<T, _Complex _Float16>())
149-
return explainErrorComplex<float16>();
150-
#endif
151-
#ifdef LIBC_TYPES_HAS_FLOAT128
152-
return explainErrorComplex<float128>();
153-
#endif
154140
}
155141
};
156142

0 commit comments

Comments
 (0)