/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits/ |
D | default.pass.cpp | 28 static_assert(std::numeric_limits<A>::is_specialized == false, in main() 30 assert(std::numeric_limits<A>::min() == A()); in main() 31 assert(std::numeric_limits<A>::max() == A()); in main() 32 assert(std::numeric_limits<A>::lowest() == A()); in main() 33 static_assert(std::numeric_limits<A>::digits == 0, in main() 35 static_assert(std::numeric_limits<A>::digits10 == 0, in main() 37 static_assert(std::numeric_limits<A>::max_digits10 == 0, in main() 39 static_assert(std::numeric_limits<A>::is_signed == false, in main() 41 static_assert(std::numeric_limits<A>::is_integer == false, in main() 43 static_assert(std::numeric_limits<A>::is_exact == false, in main() [all …]
|
/external/libcxx/test/std/language.support/support.limits/limits/numeric.limits.members/ |
D | const_data_members.pass.cpp | 46 test(std::numeric_limits<type>::is_specialized); \ 47 test(std::numeric_limits<type>::digits); \ 48 test(std::numeric_limits<type>::digits10); \ 49 test(std::numeric_limits<type>::max_digits10); \ 50 test(std::numeric_limits<type>::is_signed); \ 51 test(std::numeric_limits<type>::is_integer); \ 52 test(std::numeric_limits<type>::is_exact); \ 53 test(std::numeric_limits<type>::radix); \ 54 test(std::numeric_limits<type>::min_exponent); \ 55 test(std::numeric_limits<type>::min_exponent10); \ [all …]
|
D | min.pass.cpp | 26 assert(std::numeric_limits<T>::min() == expected); in test() 27 assert(std::numeric_limits<T>::is_bounded || !std::numeric_limits<T>::is_signed); in test() 28 assert(std::numeric_limits<const T>::min() == expected); in test() 29 assert(std::numeric_limits<const T>::is_bounded || !std::numeric_limits<const T>::is_signed); in test() 30 assert(std::numeric_limits<volatile T>::min() == expected); in test() 31 …assert(std::numeric_limits<volatile T>::is_bounded || !std::numeric_limits<volatile T>::is_signed); in test() 32 assert(std::numeric_limits<const volatile T>::min() == expected); in test() 33 …assert(std::numeric_limits<const volatile T>::is_bounded || !std::numeric_limits<const volatile T>… in test()
|
D | digits10.pass.cpp | 23 static_assert(std::numeric_limits<T>::digits10 == expected, "digits10 test 1"); in test() 24 static_assert(std::numeric_limits<T>::is_bounded, "digits10 test 5"); in test() 25 static_assert(std::numeric_limits<const T>::digits10 == expected, "digits10 test 2"); in test() 26 static_assert(std::numeric_limits<const T>::is_bounded, "digits10 test 6"); in test() 27 static_assert(std::numeric_limits<volatile T>::digits10 == expected, "digits10 test 3"); in test() 28 static_assert(std::numeric_limits<volatile T>::is_bounded, "digits10 test 7"); in test() 29 static_assert(std::numeric_limits<const volatile T>::digits10 == expected, "digits10 test 4"); in test() 30 static_assert(std::numeric_limits<const volatile T>::is_bounded, "digits10 test 8"); in test()
|
D | lowest.pass.cpp | 26 assert(std::numeric_limits<T>::lowest() == expected); in test() 27 assert(std::numeric_limits<T>::is_bounded); in test() 28 assert(std::numeric_limits<const T>::lowest() == expected); in test() 29 assert(std::numeric_limits<const T>::is_bounded); in test() 30 assert(std::numeric_limits<volatile T>::lowest() == expected); in test() 31 assert(std::numeric_limits<volatile T>::is_bounded); in test() 32 assert(std::numeric_limits<const volatile T>::lowest() == expected); in test() 33 assert(std::numeric_limits<const volatile T>::is_bounded); in test()
|
/external/tensorflow/tensorflow/core/kernels/ |
D | debug_ops_test.cc | 192 {1.1, std::numeric_limits<float>::quiet_NaN(), 3.3, in TEST_F() 193 std::numeric_limits<float>::quiet_NaN(), in TEST_F() 194 std::numeric_limits<float>::quiet_NaN(), 6.6}); in TEST_F() 207 {1.1, 2.2, 3.3, std::numeric_limits<float>::infinity(), 5.5, 6.6}); in TEST_F() 218 {1.1, std::numeric_limits<double>::quiet_NaN(), 3.3, in TEST_F() 219 std::numeric_limits<double>::quiet_NaN(), in TEST_F() 220 std::numeric_limits<double>::quiet_NaN(), 6.6}); in TEST_F() 232 {1.1, 2.2, 3.3, std::numeric_limits<double>::infinity(), 5.5, 6.6}); in TEST_F() 270 {std::numeric_limits<float>::quiet_NaN(), in TEST_F() 271 std::numeric_limits<float>::quiet_NaN(), 0.0f, 0.0f, 0.0f, -1.0f, -3.0f, in TEST_F() [all …]
|
/external/v8/src/base/ |
D | safe_math_impl.h | 98 std::numeric_limits<Integer>::is_integer, 105 std::numeric_limits<Integer>::is_integer, 112 std::numeric_limits<Integer>::is_integer, 115 std::numeric_limits<Integer>::is_signed>::type>::type type; 120 static const typename enable_if<std::numeric_limits<Integer>::is_integer, 144 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 154 if (std::numeric_limits<T>::is_signed) { 167 typename enable_if<std::numeric_limits<T>::is_integer, T>::type 177 if (std::numeric_limits<T>::is_signed) { 195 std::numeric_limits<T>::is_integer && sizeof(T) * 2 <= sizeof(uintmax_t), [all …]
|
D | safe_conversions_impl.h | 25 static const int value = std::numeric_limits<NumericType>::is_iec559 26 ? std::numeric_limits<NumericType>::max_exponent 28 std::numeric_limits<NumericType>::is_signed); 52 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 56 std::numeric_limits<Src>::is_signed 119 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 122 IntegerRepresentation SrcSign = std::numeric_limits<Src>::is_signed 155 return std::numeric_limits<Dst>::is_iec559 156 ? GetRangeConstraint(value <= std::numeric_limits<Dst>::max(), 157 value >= -std::numeric_limits<Dst>::max()) [all …]
|
/external/flatbuffers/tests/ |
D | monster_extra_generated.h | 27 : testf_nan(std::numeric_limits<float>::quiet_NaN()), in MonsterExtraT() 28 testf_pinf(std::numeric_limits<float>::infinity()), in MonsterExtraT() 29 testf_ninf(-std::numeric_limits<float>::infinity()), in MonsterExtraT() 30 testd_nan(std::numeric_limits<double>::quiet_NaN()), in MonsterExtraT() 31 testd_pinf(std::numeric_limits<double>::infinity()), in MonsterExtraT() 32 testd_ninf(-std::numeric_limits<double>::infinity()) { in MonsterExtraT() 60 return GetField<float>(VT_TESTF_NAN, std::numeric_limits<float>::quiet_NaN()); in testf_nan() 63 return SetField<float>(VT_TESTF_NAN, _testf_nan, std::numeric_limits<float>::quiet_NaN()); in mutate_testf_nan() 66 return GetField<float>(VT_TESTF_PINF, std::numeric_limits<float>::infinity()); in testf_pinf() 69 return SetField<float>(VT_TESTF_PINF, _testf_pinf, std::numeric_limits<float>::infinity()); in mutate_testf_pinf() [all …]
|
/external/libcxx/include/ |
D | limits | 21 class numeric_limits 79 template<> class numeric_limits<cv bool>; 81 template<> class numeric_limits<cv char>; 82 template<> class numeric_limits<cv signed char>; 83 template<> class numeric_limits<cv unsigned char>; 84 template<> class numeric_limits<cv wchar_t>; 85 template<> class numeric_limits<cv char8_t>; // C++20 86 template<> class numeric_limits<cv char16_t>; 87 template<> class numeric_limits<cv char32_t>; 89 template<> class numeric_limits<cv short>; [all …]
|
/external/libchrome/mojo/public/cpp/bindings/tests/ |
D | validation_context_unittest.cc | 32 ToPtr(std::numeric_limits<uintptr_t>::max() - 3000), 5000, 0, 0); in TEST() 35 ToPtr(std::numeric_limits<uintptr_t>::max() - 3000), 1)); in TEST() 37 ToPtr(std::numeric_limits<uintptr_t>::max() - 3000), 1)); in TEST() 46 static_cast<size_t>(std::numeric_limits<uint32_t>::max()) + 5; in TEST() 51 Handle_Data(std::numeric_limits<uint32_t>::max() - 1))); in TEST() 59 static_cast<size_t>(std::numeric_limits<uint32_t>::max()) + 5; in TEST() 67 std::numeric_limits<uint32_t>::max() - 1))); in TEST() 122 ToPtr(std::numeric_limits<uintptr_t>::max() - 2000), 1000, 0, 0); in TEST() 126 ToPtr(std::numeric_limits<uintptr_t>::max() - 1500), 4000)); in TEST() 128 ToPtr(std::numeric_limits<uintptr_t>::max() - 1500), in TEST() [all …]
|
/external/llvm/unittests/ADT/ |
D | PointerEmbeddedIntTest.cpp | 55 PointerEmbeddedInt<intptr_t, std::numeric_limits<intptr_t>::digits> in TEST() 56 IMax = std::numeric_limits<intptr_t>::max() >> 1, in TEST() 57 IMin = std::numeric_limits<intptr_t>::min() >> 1; in TEST() 58 EXPECT_EQ(std::numeric_limits<intptr_t>::max() >> 1, IMax); in TEST() 59 EXPECT_EQ(std::numeric_limits<intptr_t>::min() >> 1, IMin); in TEST() 61 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 62 UMax = std::numeric_limits<uintptr_t>::max() >> 1, in TEST() 63 UMin = std::numeric_limits<uintptr_t>::min() >> 1; in TEST() 64 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, UMax); in TEST() 65 EXPECT_EQ(std::numeric_limits<uintptr_t>::min() >> 1, UMin); in TEST() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/ADT/ |
D | PointerEmbeddedIntTest.cpp | 55 PointerEmbeddedInt<intptr_t, std::numeric_limits<intptr_t>::digits> in TEST() 56 IMax = std::numeric_limits<intptr_t>::max() >> 1, in TEST() 57 IMin = std::numeric_limits<intptr_t>::min() >> 1; in TEST() 58 EXPECT_EQ(std::numeric_limits<intptr_t>::max() >> 1, IMax); in TEST() 59 EXPECT_EQ(std::numeric_limits<intptr_t>::min() >> 1, IMin); in TEST() 61 PointerEmbeddedInt<uintptr_t, std::numeric_limits<uintptr_t>::digits - 1> in TEST() 62 UMax = std::numeric_limits<uintptr_t>::max() >> 1, in TEST() 63 UMin = std::numeric_limits<uintptr_t>::min() >> 1; in TEST() 64 EXPECT_EQ(std::numeric_limits<uintptr_t>::max() >> 1, UMax); in TEST() 65 EXPECT_EQ(std::numeric_limits<uintptr_t>::min() >> 1, UMin); in TEST() [all …]
|
/external/libchrome/base/time/ |
D | time.cc | 43 return std::numeric_limits<int>::max(); in InDays() 51 return std::numeric_limits<int>::max(); in InDaysFloored() 64 return std::numeric_limits<int>::max(); in InHours() 72 return std::numeric_limits<int>::max(); in InMinutes() 80 return std::numeric_limits<double>::infinity(); in InSecondsF() 88 return std::numeric_limits<int64_t>::max(); in InSeconds() 96 return std::numeric_limits<double>::infinity(); in InMillisecondsF() 104 return std::numeric_limits<int64_t>::max(); in InMilliseconds() 112 return std::numeric_limits<int64_t>::max(); in InMillisecondsRoundedUp() 125 return std::numeric_limits<int64_t>::max(); in InMicroseconds() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/Support/ |
D | CheckedArithmeticTest.cpp | 9 const int64_t Max = std::numeric_limits<int64_t>::max(); in TEST() 10 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() 18 const int16_t Max = std::numeric_limits<int16_t>::max(); in TEST() 19 const int16_t Min = std::numeric_limits<int16_t>::min(); in TEST() 27 const int64_t Max = std::numeric_limits<int64_t>::max(); in TEST() 28 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() 36 const int64_t Max = std::numeric_limits<int64_t>::max(); in TEST() 37 const int64_t Min = std::numeric_limits<int64_t>::min(); in TEST() 45 const int16_t Max = std::numeric_limits<int16_t>::max(); in TEST() 46 const int16_t Min = std::numeric_limits<int16_t>::min(); in TEST() [all …]
|
/external/skqp/tests/ |
D | FitsInTest.cpp | 21 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::max)(), int8_t, true); in DEF_TEST() 22 TEST(int32_t, ((int32_t)(std::numeric_limits<int8_t>::max)())+1, int8_t, false); in DEF_TEST() 23 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::min)(), int8_t, true); in DEF_TEST() 24 TEST(int32_t, (int32_t)((std::numeric_limits<int8_t>::min)())-1, int8_t, false); in DEF_TEST() 28 TEST(int32_t, (int32_t)(std::numeric_limits<uint8_t>::max)(), uint8_t, true); in DEF_TEST() 29 TEST(int32_t, ((int32_t)(std::numeric_limits<uint8_t>::max)())+1, uint8_t, false); in DEF_TEST() 55 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int8_t, false); in DEF_TEST() 56 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint8_t, false); in DEF_TEST() 57 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int32_t, false); in DEF_TEST() 58 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint32_t, true); in DEF_TEST() [all …]
|
/external/skia/tests/ |
D | FitsInTest.cpp | 27 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::max)(), int8_t, true); in DEF_TEST() 28 TEST(int32_t, ((int32_t)(std::numeric_limits<int8_t>::max)())+1, int8_t, false); in DEF_TEST() 29 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::min)(), int8_t, true); in DEF_TEST() 30 TEST(int32_t, (int32_t)((std::numeric_limits<int8_t>::min)())-1, int8_t, false); in DEF_TEST() 34 TEST(int32_t, (int32_t)(std::numeric_limits<uint8_t>::max)(), uint8_t, true); in DEF_TEST() 35 TEST(int32_t, ((int32_t)(std::numeric_limits<uint8_t>::max)())+1, uint8_t, false); in DEF_TEST() 64 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int8_t, false); in DEF_TEST() 65 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint8_t, false); in DEF_TEST() 66 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int32_t, false); in DEF_TEST() 67 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint32_t, true); in DEF_TEST() [all …]
|
/external/libchrome/base/strings/ |
D | string_number_conversions_unittest.cc | 40 {std::numeric_limits<int>::max(), "2147483647", "2147483647"}, in TEST() 41 {std::numeric_limits<int>::min(), "-2147483648", "2147483648"}, in TEST() 47 std::numeric_limits<int64_t>::max(), "9223372036854775807", in TEST() 50 {std::numeric_limits<int64_t>::min(), "-9223372036854775808", in TEST() 80 {std::numeric_limits<uint64_t>::max(), "18446744073709551615"}, in TEST() 88 size_t size_t_max = std::numeric_limits<size_t>::max(); in TEST() 252 {"9223372036854775807", std::numeric_limits<int64_t>::max(), true}, in TEST() 253 {"-9223372036854775808", std::numeric_limits<int64_t>::min(), true}, in TEST() 271 {"-9223372036854775809", std::numeric_limits<int64_t>::min(), false}, in TEST() 272 {"-99999999999999999999", std::numeric_limits<int64_t>::min(), false}, in TEST() [all …]
|
/external/webrtc/webrtc/base/ |
D | safe_conversions_impl.h | 40 DstSign IsDstSigned = std::numeric_limits<Dst>::is_signed ? 42 SrcSign IsSrcSigned = std::numeric_limits<Src>::is_signed ? 48 typedef std::numeric_limits<Dst> DstLimits; 49 typedef std::numeric_limits<Src> SrcLimits; 69 typedef std::numeric_limits<Dst> DstLimits; 70 typedef std::numeric_limits<Src> SrcLimits; 102 DstSign IsDstSigned = std::numeric_limits<Dst>::is_signed ? 104 SrcSign IsSrcSigned = std::numeric_limits<Src>::is_signed ? 125 typedef std::numeric_limits<Dst> DstLimits; 140 typedef std::numeric_limits<Dst> DstLimits; [all …]
|
/external/libcxx/test/std/depr/depr.c.headers/ |
D | stdint_h.pass.cpp | 208 assert(INTPTR_MIN == std::numeric_limits<intptr_t>::min()); in main() 211 assert(INTPTR_MAX == std::numeric_limits<intptr_t>::max()); in main() 214 assert(UINTPTR_MAX == std::numeric_limits<uintptr_t>::max()); in main() 217 assert(INTMAX_MIN == std::numeric_limits<intmax_t>::min()); in main() 220 assert(INTMAX_MAX == std::numeric_limits<intmax_t>::max()); in main() 223 assert(UINTMAX_MAX == std::numeric_limits<uintmax_t>::max()); in main() 226 assert(PTRDIFF_MIN == std::numeric_limits<std::ptrdiff_t>::min()); in main() 229 assert(PTRDIFF_MAX == std::numeric_limits<std::ptrdiff_t>::max()); in main() 232 assert(SIG_ATOMIC_MIN == std::numeric_limits<sig_atomic_t>::min()); in main() 235 assert(SIG_ATOMIC_MAX == std::numeric_limits<sig_atomic_t>::max()); in main() [all …]
|
/external/tensorflow/tensorflow/core/framework/ |
D | type_traits.h | 80 class numeric_limits<tensorflow::qint8> 81 : public numeric_limits<tensorflow::int8> {}; 83 class numeric_limits<tensorflow::quint8> 84 : public numeric_limits<tensorflow::uint8> {}; 86 class numeric_limits<tensorflow::qint16> 87 : public numeric_limits<tensorflow::int16> {}; 89 class numeric_limits<tensorflow::quint16> 90 : public numeric_limits<tensorflow::uint16> {}; 92 class numeric_limits<tensorflow::qint32> 93 : public numeric_limits<tensorflow::int32> {};
|
/external/dng_sdk/source/ |
D | dng_safe_arithmetic.cpp | 32 if ((arg1 >= 0 && arg2 <= std::numeric_limits<T>::max() - arg1) || in SafeAdd() 33 (arg1 < 0 && arg2 >= std::numeric_limits<T>::min() - arg1)) { in SafeAdd() 46 if (arg1 == 0 || arg2 <= std::numeric_limits<T>::max() / arg1) { in SafeUnsignedMult() 92 if ((arg2 >= 0 && arg1 >= std::numeric_limits<int32_t>::min() + arg2) || in SafeInt32Sub() 93 (arg2 < 0 && arg1 <= std::numeric_limits<int32_t>::max() + arg2)) { in SafeInt32Sub() 167 if (tmp >= std::numeric_limits<std::int32_t>::min() && in SafeInt32Mult() 168 tmp <= std::numeric_limits<std::int32_t>::max()) { in SafeInt32Mult() 187 overflow = (arg1 > std::numeric_limits<std::int64_t>::max() / arg2); in SafeInt64MultSlow() 189 overflow = (arg2 < std::numeric_limits<std::int64_t>::min() / arg1); in SafeInt64MultSlow() 193 overflow = (arg1 < std::numeric_limits<std::int64_t>::min() / arg2); in SafeInt64MultSlow() [all …]
|
/external/tensorflow/tensorflow/compiler/xla/client/lib/ |
D | constants.cc | 53 return ConstantR0<float>(builder, std::numeric_limits<float>::epsilon()); in Epsilon() 56 std::numeric_limits<double>::epsilon()); in Epsilon() 75 return ConstantR0<float>(builder, -std::numeric_limits<float>::max()); in MinFiniteValue() 77 return ConstantR0<double>(builder, -std::numeric_limits<double>::max()); in MinFiniteValue() 87 std::numeric_limits<Eigen::half>::min()); in MinPositiveNormalValue() 91 return ConstantR0<float>(builder, std::numeric_limits<float>::min()); in MinPositiveNormalValue() 93 return ConstantR0<double>(builder, std::numeric_limits<double>::min()); in MinPositiveNormalValue() 113 return ConstantR0<float>(builder, std::numeric_limits<float>::max()); in MaxFiniteValue() 115 return ConstantR0<double>(builder, std::numeric_limits<double>::max()); in MaxFiniteValue() 129 builder, bfloat16(std::numeric_limits<float>::quiet_NaN())); in NanValue() [all …]
|
/external/swiftshader/third_party/SPIRV-Tools/test/ |
D | bit_stream.cpp | 171 EXPECT_EQ(std::numeric_limits<uint64_t>::max() - 1, in TEST() 172 EncodeZigZag(std::numeric_limits<int64_t>::max(), 0)); in TEST() 173 EXPECT_EQ(std::numeric_limits<uint64_t>::max(), in TEST() 174 EncodeZigZag(std::numeric_limits<int64_t>::min(), 0)); in TEST() 182 EXPECT_EQ(std::numeric_limits<int64_t>::min(), in TEST() 183 DecodeZigZag(std::numeric_limits<uint64_t>::max(), 0)); in TEST() 184 EXPECT_EQ(std::numeric_limits<int64_t>::max(), in TEST() 185 DecodeZigZag(std::numeric_limits<uint64_t>::max() - 1, 0)); in TEST() 197 EXPECT_EQ(std::numeric_limits<uint64_t>::max() - 2, in TEST() 198 EncodeZigZag(std::numeric_limits<int64_t>::max(), 1)); in TEST() [all …]
|
/external/deqp-deps/SPIRV-Tools/test/ |
D | bit_stream.cpp | 171 EXPECT_EQ(std::numeric_limits<uint64_t>::max() - 1, in TEST() 172 EncodeZigZag(std::numeric_limits<int64_t>::max(), 0)); in TEST() 173 EXPECT_EQ(std::numeric_limits<uint64_t>::max(), in TEST() 174 EncodeZigZag(std::numeric_limits<int64_t>::min(), 0)); in TEST() 182 EXPECT_EQ(std::numeric_limits<int64_t>::min(), in TEST() 183 DecodeZigZag(std::numeric_limits<uint64_t>::max(), 0)); in TEST() 184 EXPECT_EQ(std::numeric_limits<int64_t>::max(), in TEST() 185 DecodeZigZag(std::numeric_limits<uint64_t>::max() - 1, 0)); in TEST() 197 EXPECT_EQ(std::numeric_limits<uint64_t>::max() - 2, in TEST() 198 EncodeZigZag(std::numeric_limits<int64_t>::max(), 1)); in TEST() [all …]
|