summaryrefslogtreecommitdiffstats
path: root/libcxx/include
diff options
context:
space:
mode:
authorPetr Hosek <phosek@chromium.org>2018-10-24 21:29:15 +0000
committerPetr Hosek <phosek@chromium.org>2018-10-24 21:29:15 +0000
commit76ccec07b4fa0cc68dfd07d557e7fb661804a468 (patch)
treefcea7f22f57e92237e1f548612e48a66d24d51c4 /libcxx/include
parent632f35d495a42514eaf26468beceae923e813997 (diff)
downloadbcm5719-llvm-76ccec07b4fa0cc68dfd07d557e7fb661804a468.tar.gz
bcm5719-llvm-76ccec07b4fa0cc68dfd07d557e7fb661804a468.zip
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 llvm-svn: 345199
Diffstat (limited to 'libcxx/include')
-rw-r--r--libcxx/include/type_traits6
1 files changed, 0 insertions, 6 deletions
diff --git a/libcxx/include/type_traits b/libcxx/include/type_traits
index 7ff67bfdb73..aadb97ba9bf 100644
--- a/libcxx/include/type_traits
+++ b/libcxx/include/type_traits
@@ -738,12 +738,6 @@ _LIBCPP_INLINE_VAR _LIBCPP_CONSTEXPR bool is_integral_v
// is_floating_point
template <class _Tp> struct __libcpp_is_floating_point : public false_type {};
-#ifdef __clang__
-template <> struct __libcpp_is_floating_point<__fp16> : public true_type {};
-#endif
-#ifdef __FLT16_MANT_DIG__
-template <> struct __libcpp_is_floating_point<_Float16> : public true_type {};
-#endif
template <> struct __libcpp_is_floating_point<float> : public true_type {};
template <> struct __libcpp_is_floating_point<double> : public true_type {};
template <> struct __libcpp_is_floating_point<long double> : public true_type {};
OpenPOWER on IntegriCloud