Home
last modified time | relevance | path

Searched refs:is_floating_point (Results 1 – 25 of 68) sorted by relevance

123

/external/libcxx/test/std/utilities/meta/meta.unary/meta.unary.cat/
Dis_floating_point.pass.cpp21 static_assert( std::is_floating_point<T>::value, ""); in test_is_floating_point()
22 static_assert( std::is_floating_point<const T>::value, ""); in test_is_floating_point()
23 static_assert( std::is_floating_point<volatile T>::value, ""); in test_is_floating_point()
24 static_assert( std::is_floating_point<const volatile T>::value, ""); in test_is_floating_point()
36 static_assert(!std::is_floating_point<T>::value, ""); in test_is_not_floating_point()
37 static_assert(!std::is_floating_point<const T>::value, ""); in test_is_not_floating_point()
38 static_assert(!std::is_floating_point<volatile T>::value, ""); in test_is_not_floating_point()
39 static_assert(!std::is_floating_point<const volatile T>::value, ""); in test_is_not_floating_point()
Dfloating_point.pass.cpp25 static_assert( std::is_floating_point<T>::value, ""); in test_floating_point_imp()
56 static_assert(!std::is_floating_point<incomplete_type>::value, ""); in main()
Drvalue_ref.pass.cpp27 static_assert(!std::is_floating_point<T>::value, ""); in test_rvalue_ref()
Dlvalue_ref.pass.cpp26 static_assert(!std::is_floating_point<T>::value, ""); in test_lvalue_ref()
Dunion.pass.cpp25 static_assert(!std::is_floating_point<T>::value, ""); in test_union_imp()
Dnullptr.pass.cpp26 static_assert(!std::is_floating_point<T>::value, ""); in test_nullptr_imp()
Dmember_object_pointer.pass.cpp25 static_assert(!std::is_floating_point<T>::value, ""); in test_member_object_pointer_imp()
Dvoid.pass.cpp25 static_assert(!std::is_floating_point<T>::value, ""); in test_void_imp()
Dclass.pass.cpp25 static_assert(!std::is_floating_point<T>::value, ""); in test_class_imp()
Dpointer.pass.cpp26 static_assert(!std::is_floating_point<T>::value, ""); in test_pointer_imp()
Denum.pass.cpp25 static_assert(!std::is_floating_point<T>::value, ""); in test_enum_imp()
/external/protobuf/src/google/protobuf/stubs/
Dtype_traits.h90 template <class T> struct is_floating_point;
152 template <class T> struct is_floating_point : false_type { };
153 template<> struct is_floating_point<float> : true_type { };
154 template<> struct is_floating_point<double> : true_type { };
155 template<> struct is_floating_point<long double> : true_type { };
156 template <class T> struct is_floating_point<const T>
157 : is_floating_point<T> { };
158 template <class T> struct is_floating_point<volatile T>
159 : is_floating_point<T> { };
160 template <class T> struct is_floating_point<const volatile T>
[all …]
Dtype_traits_unittest.cc207 EXPECT_TRUE(is_floating_point<float>::value); in TEST()
208 EXPECT_TRUE(is_floating_point<double>::value); in TEST()
209 EXPECT_TRUE(is_floating_point<long double>::value); in TEST()
212 EXPECT_FALSE(is_floating_point<void>::value); in TEST()
213 EXPECT_FALSE(is_floating_point<long>::value); in TEST()
214 EXPECT_FALSE(is_floating_point<string>::value); in TEST()
215 EXPECT_FALSE(is_floating_point<float*>::value); in TEST()
216 EXPECT_FALSE(is_floating_point<A>::value); in TEST()
217 EXPECT_FALSE((is_floating_point<pair<int, int> >::value)); in TEST()
221 EXPECT_TRUE(is_floating_point<const float>::value); in TEST()
[all …]
/external/flatbuffers/include/flatbuffers/
Dstl_emulation.h139 template <typename T> using is_floating_point = std::is_floating_point<T>; variable
146 template <typename T> using is_floating_point = variable
147 std::tr1::is_floating_point<T>;
165 template <typename T> struct is_floating_point :
166 public std::is_floating_point<T> {};
/external/libcxx/test/std/utilities/time/time.traits/time.traits.is_fp/
Dtreat_as_floating_point.pass.cpp23 static_assert((std::is_base_of<std::is_floating_point<T>, in test()
26 static_assert(std::is_floating_point<T>::value == in test()
/external/libcxx/test/std/numerics/complex.number/cmplx.over/
Dconj.pass.cpp34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0) in test()
43 !std::is_floating_point<T>::value>::type* = 0) in test()
Dproj.pass.cpp34 test(T x, typename std::enable_if<std::is_floating_point<T>::value>::type* = 0) in test()
43 !std::is_floating_point<T>::value>::type* = 0) in test()
/external/libcxx/test/libcxx/input.output/filesystems/
Dconvert_file_time.sh.cpp45 if (sizeof(TimeT) == 8 && !std::is_floating_point<TimeT>::value) in getTimeTTestKind()
47 else if (sizeof(TimeT) == 4 && !std::is_floating_point<TimeT>::value) in getTimeTTestKind()
49 else if (std::is_floating_point<TimeT>::value) in getTimeTTestKind()
57 if (std::is_floating_point<Rep>::value) in getFileTimeTestKind()
/external/libchrome/base/numerics/
Dsafe_math_shared_impl.h115 bool IsFloat = std::is_floating_point<Numeric>::value>
143 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
162 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
Dclamped_math_impl.h44 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
66 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
322 typename std::enable_if<std::is_floating_point<T>::value || \
323 std::is_floating_point<U>::value>::type> { \
/external/libcxx/include/
Dcmath556 _LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
568 _LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
576 _LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
588 _LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
596 _LIBCPP_CONSTEXPR typename enable_if<is_floating_point<_A1>::value, bool>::type
608 _LIBCPP_CONSTEXPR typename enable_if<!is_floating_point<_A1>::value, bool>::type
619 static_assert(is_floating_point<_FloatT>::value, "must be a floating point type");
/external/pdfium/third_party/base/numerics/
Dsafe_math_impl.h33 bool IsFloat = std::is_floating_point<Numeric>::value>
451 T, U, typename std::enable_if<std::is_floating_point<T>::value || \
452 std::is_floating_point<U>::value>::type> { \
485 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
504 typename std::enable_if<std::is_floating_point<T>::value>::type* = nullptr>
523 : (std::is_floating_point<NumericType>::value ? NUMERIC_FLOATING
Dsafe_conversions_impl.h21 static const int value = std::is_floating_point<NumericType>::value
215 typename std::enable_if<std::is_floating_point<T>::value>::type* =
484 !std::is_floating_point<T>::value &&
485 !std::is_floating_point<Lhs>::value &&
486 !std::is_floating_point<Rhs>::value &&
/external/swiftshader/third_party/subzero/unittest/AssemblerX8632/
DTestUtil.h232 std::is_floating_point<T0>::value>::type>
302 typename std::enable_if<std::is_floating_point<Container>::value, \
332 typename std::enable_if<std::is_floating_point<Container>::value, \
413 std::is_floating_point<Container>::value,
418 std::is_floating_point<Container>::value,
472 static_assert(std::is_floating_point<Container>::value, \
/external/tensorflow/tensorflow/compiler/xla/service/
Dhlo_evaluator_typed_visitor.h364 template <typename NativeT, typename std::enable_if<std::is_floating_point<
399 !std::is_floating_point<NativeT>::value>::type* = nullptr>
413 std::is_floating_point<NativeT>::value>::type* = nullptr>
442 std::is_floating_point<NativeT>::value>::type* = nullptr>
472 template <typename NativeT, typename std::enable_if<std::is_floating_point<
483 template <typename NativeT, typename std::enable_if<!std::is_floating_point<
535 typename std::enable_if<std::is_floating_point<NativeT>::value ||
598 template <typename NativeT, typename std::enable_if<std::is_floating_point<
632 template <typename NativeT, typename std::enable_if<std::is_floating_point<
684 template <typename NativeT, typename std::enable_if<std::is_floating_point<
[all …]

123