Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

Commit 432692b

Browse files
petrhosekhyp
authored andcommitted
Revert "Teach __libcpp_is_floating_point that __fp16 and _Float16 are"
This reverts commits r333103 and r333108. _Float16 and __fp16 are C11 extensions and compilers other than Clang don't define these for C++. Differential Revision: https://reviews.llvm.org/D53670 git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@345199 91177308-0d34-0410-b5e6-96231b3b80d8 (cherry picked from commit 842383f) rdar://47617754
1 parent 13fe960 commit 432692b

File tree

2 files changed

+0
-30
lines changed

2 files changed

+0
-30
lines changed

include/type_traits

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -733,12 +733,6 @@ _LIBCPP_INLINE_VAR _LIBCPP_CONSTEXPR bool is_integral_v
733733
// is_floating_point
734734

735735
template <class _Tp> struct __libcpp_is_floating_point : public false_type {};
736-
#ifdef __clang__
737-
template <> struct __libcpp_is_floating_point<__fp16> : public true_type {};
738-
#endif
739-
#ifdef __FLT16_MANT_DIG__
740-
template <> struct __libcpp_is_floating_point<_Float16> : public true_type {};
741-
#endif
742736
template <> struct __libcpp_is_floating_point<float> : public true_type {};
743737
template <> struct __libcpp_is_floating_point<double> : public true_type {};
744738
template <> struct __libcpp_is_floating_point<long double> : public true_type {};

test/libcxx/type_traits/is_floating_point.pass.cpp

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)