/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 | 44 test(std::numeric_limits<type>::is_specialized); \ 45 test(std::numeric_limits<type>::digits); \ 46 test(std::numeric_limits<type>::digits10); \ 47 test(std::numeric_limits<type>::max_digits10); \ 48 test(std::numeric_limits<type>::is_signed); \ 49 test(std::numeric_limits<type>::is_integer); \ 50 test(std::numeric_limits<type>::is_exact); \ 51 test(std::numeric_limits<type>::radix); \ 52 test(std::numeric_limits<type>::min_exponent); \ 53 test(std::numeric_limits<type>::min_exponent10); \ [all …]
|
D | min.pass.cpp | 24 assert(std::numeric_limits<T>::min() == expected); in test() 25 assert(std::numeric_limits<T>::is_bounded || !std::numeric_limits<T>::is_signed); in test() 26 assert(std::numeric_limits<const T>::min() == expected); in test() 27 assert(std::numeric_limits<const T>::is_bounded || !std::numeric_limits<const T>::is_signed); in test() 28 assert(std::numeric_limits<volatile T>::min() == expected); in test() 29 …assert(std::numeric_limits<volatile T>::is_bounded || !std::numeric_limits<volatile T>::is_signed); in test() 30 assert(std::numeric_limits<const volatile T>::min() == expected); in test() 31 …assert(std::numeric_limits<const volatile T>::is_bounded || !std::numeric_limits<const volatile T>… in test()
|
D | digits10.pass.cpp | 21 static_assert(std::numeric_limits<T>::digits10 == expected, "digits10 test 1"); in test() 22 static_assert(std::numeric_limits<T>::is_bounded, "digits10 test 5"); in test() 23 static_assert(std::numeric_limits<const T>::digits10 == expected, "digits10 test 2"); in test() 24 static_assert(std::numeric_limits<const T>::is_bounded, "digits10 test 6"); in test() 25 static_assert(std::numeric_limits<volatile T>::digits10 == expected, "digits10 test 3"); in test() 26 static_assert(std::numeric_limits<volatile T>::is_bounded, "digits10 test 7"); in test() 27 static_assert(std::numeric_limits<const volatile T>::digits10 == expected, "digits10 test 4"); in test() 28 static_assert(std::numeric_limits<const volatile T>::is_bounded, "digits10 test 8"); in test()
|
D | lowest.pass.cpp | 24 assert(std::numeric_limits<T>::lowest() == expected); in test() 25 assert(std::numeric_limits<T>::is_bounded); in test() 26 assert(std::numeric_limits<const T>::lowest() == expected); in test() 27 assert(std::numeric_limits<const T>::is_bounded); in test() 28 assert(std::numeric_limits<volatile T>::lowest() == expected); in test() 29 assert(std::numeric_limits<volatile T>::is_bounded); in test() 30 assert(std::numeric_limits<const volatile T>::lowest() == expected); in test() 31 assert(std::numeric_limits<const volatile T>::is_bounded); in test()
|
/external/libweave/third_party/chromium/base/numerics/ |
D | safe_math_impl.h | 68 std::numeric_limits<Integer>::is_integer, 75 std::numeric_limits<Integer>::is_integer, 82 std::numeric_limits<Integer>::is_integer, 85 std::numeric_limits<Integer>::is_signed>::type>::type type; 90 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer, 100 bool IsInteger = std::numeric_limits<Numeric>::is_integer, 101 bool IsFloat = std::numeric_limits<Numeric>::is_iec559> 134 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 144 if (std::numeric_limits<T>::is_signed) { 157 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type [all …]
|
D | safe_numerics_unittest.cc | 18 using std::numeric_limits; 45 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() 46 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat() 78 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic() 79 numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic() 81 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() 134 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic() 135 !numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic() 137 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() 152 std::numeric_limits<typename SignedIntegerForSize<Dst>::type>::min()) in TestSpecializedArithmetic() [all …]
|
/external/libchrome/base/numerics/ |
D | safe_math_impl.h | 69 std::numeric_limits<Integer>::is_integer, 76 std::numeric_limits<Integer>::is_integer, 83 std::numeric_limits<Integer>::is_integer, 86 std::numeric_limits<Integer>::is_signed>::type>::type type; 91 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer, 101 bool IsInteger = std::numeric_limits<Numeric>::is_integer, 102 bool IsFloat = std::numeric_limits<Numeric>::is_iec559> 135 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 145 if (std::numeric_limits<T>::is_signed) { 158 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type [all …]
|
D | safe_numerics_unittest.cc | 22 using std::numeric_limits; 49 typedef numeric_limits<Dst> DstLimits; in GetMaxConvertibleToFloat() 50 typedef numeric_limits<Src> SrcLimits; in GetMaxConvertibleToFloat() 82 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic() 83 numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic() 85 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() 138 typename std::enable_if<numeric_limits<Dst>::is_integer && in TestSpecializedArithmetic() 139 !numeric_limits<Dst>::is_signed, in TestSpecializedArithmetic() 141 typedef numeric_limits<Dst> DstLimits; in TestSpecializedArithmetic() 156 std::numeric_limits<typename SignedIntegerForSize<Dst>::type>::min()) in TestSpecializedArithmetic() [all …]
|
/external/pdfium/third_party/base/numerics/ |
D | safe_math_impl.h | 69 std::numeric_limits<Integer>::is_integer, 76 std::numeric_limits<Integer>::is_integer, 83 std::numeric_limits<Integer>::is_integer, 86 std::numeric_limits<Integer>::is_signed>::type>::type type; 91 static const typename std::enable_if<std::numeric_limits<Integer>::is_integer, 116 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 126 if (std::numeric_limits<T>::is_signed) { 139 typename std::enable_if<std::numeric_limits<T>::is_integer, T>::type 149 if (std::numeric_limits<T>::is_signed) { 166 typename std::enable_if<std::numeric_limits<T>::is_integer && [all …]
|
D | safe_conversions_impl.h | 22 static const int value = std::numeric_limits<NumericType>::is_iec559 23 ? std::numeric_limits<NumericType>::max_exponent 25 std::numeric_limits<NumericType>::is_signed); 49 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 53 std::numeric_limits<Src>::is_signed 116 IntegerRepresentation DstSign = std::numeric_limits<Dst>::is_signed 119 IntegerRepresentation SrcSign = std::numeric_limits<Src>::is_signed 152 return std::numeric_limits<Dst>::is_iec559 153 ? GetRangeConstraint(value <= std::numeric_limits<Dst>::max(), 154 value >= -std::numeric_limits<Dst>::max()) [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/opencv3/3rdparty/openexr/IlmImf/ |
D | ImfCheckedArithmetic.h | 65 IMF_STATIC_ASSERT (!std::numeric_limits<T>::is_signed && 66 std::numeric_limits<T>::is_integer); 68 if (a > 0 && b > std::numeric_limits<T>::max() / a) 83 IMF_STATIC_ASSERT (!std::numeric_limits<T>::is_signed && 84 std::numeric_limits<T>::is_integer); 101 IMF_STATIC_ASSERT (!std::numeric_limits<T>::is_signed && 102 std::numeric_limits<T>::is_integer); 104 if (a > std::numeric_limits<T>::max() - b) 119 IMF_STATIC_ASSERT (!std::numeric_limits<T>::is_signed && 120 std::numeric_limits<T>::is_integer); [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 char16_t>; 86 template<> class numeric_limits<cv char32_t>; 88 template<> class numeric_limits<cv short>; 89 template<> class numeric_limits<cv int>; [all …]
|
/external/libweave/third_party/chromium/base/strings/ |
D | string_number_conversions_unittest.cc | 39 { std::numeric_limits<int>::max(), "2147483647", "2147483647" }, in TEST() 40 { std::numeric_limits<int>::min(), "-2147483648", "2147483648" }, in TEST() 46 std::numeric_limits<int64_t>::max(), "9223372036854775807", in TEST() 49 {std::numeric_limits<int64_t>::min(), "-9223372036854775808", in TEST() 73 {std::numeric_limits<uint64_t>::max(), "18446744073709551615"}, in TEST() 81 size_t size_t_max = std::numeric_limits<size_t>::max(); in TEST() 214 {"9223372036854775807", std::numeric_limits<int64_t>::max(), true}, in TEST() 215 {"-9223372036854775808", std::numeric_limits<int64_t>::min(), true}, in TEST() 233 {"-9223372036854775809", std::numeric_limits<int64_t>::min(), false}, in TEST() 234 {"-99999999999999999999", std::numeric_limits<int64_t>::min(), false}, in TEST() [all …]
|
/external/libweave/third_party/chromium/base/time/ |
D | time.cc | 23 return TimeDelta(std::numeric_limits<int64_t>::max()); in Max() 29 return std::numeric_limits<int>::max(); in InDays() 37 return std::numeric_limits<int>::max(); in InHours() 45 return std::numeric_limits<int>::max(); in InMinutes() 53 return std::numeric_limits<double>::infinity(); in InSecondsF() 61 return std::numeric_limits<int64_t>::max(); in InSeconds() 69 return std::numeric_limits<double>::infinity(); in InMillisecondsF() 77 return std::numeric_limits<int64_t>::max(); in InMilliseconds() 85 return std::numeric_limits<int64_t>::max(); in InMillisecondsRoundedUp() 94 return std::numeric_limits<int64_t>::max(); in InMicroseconds() [all …]
|
/external/opencv3/modules/core/include/opencv2/core/cuda/ |
D | limits.hpp | 58 template <class T> struct numeric_limits; 60 template <> struct numeric_limits<bool> struct 67 template <> struct numeric_limits<signed char> struct 74 template <> struct numeric_limits<unsigned char> struct 81 template <> struct numeric_limits<short> struct 88 template <> struct numeric_limits<unsigned short> struct 95 template <> struct numeric_limits<int> struct 102 template <> struct numeric_limits<unsigned int> struct 109 template <> struct numeric_limits<float> struct 117 template <> struct numeric_limits<double> struct
|
/external/v8/test/unittests/base/ |
D | bits-unittest.cc | 167 SignedAddOverflow32(std::numeric_limits<int32_t>::max(), 1, &val)); in TEST() 168 EXPECT_EQ(std::numeric_limits<int32_t>::min(), val); in TEST() 170 SignedAddOverflow32(std::numeric_limits<int32_t>::min(), -1, &val)); in TEST() 171 EXPECT_EQ(std::numeric_limits<int32_t>::max(), val); in TEST() 172 EXPECT_TRUE(SignedAddOverflow32(std::numeric_limits<int32_t>::max(), in TEST() 173 std::numeric_limits<int32_t>::max(), &val)); in TEST() 189 SignedSubOverflow32(std::numeric_limits<int32_t>::min(), 1, &val)); in TEST() 190 EXPECT_EQ(std::numeric_limits<int32_t>::max(), val); in TEST() 192 SignedSubOverflow32(std::numeric_limits<int32_t>::max(), -1, &val)); in TEST() 193 EXPECT_EQ(std::numeric_limits<int32_t>::min(), val); in TEST() [all …]
|
/external/skia/tests/ |
D | FitsInTest.cpp | 19 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::max)(), int8_t, true); in DEF_TEST() 20 TEST(int32_t, ((int32_t)(std::numeric_limits<int8_t>::max)())+1, int8_t, false); in DEF_TEST() 21 TEST(int32_t, (int32_t)(std::numeric_limits<int8_t>::min)(), int8_t, true); in DEF_TEST() 22 TEST(int32_t, (int32_t)((std::numeric_limits<int8_t>::min)())-1, int8_t, false); in DEF_TEST() 26 TEST(int32_t, (int32_t)(std::numeric_limits<uint8_t>::max)(), uint8_t, true); in DEF_TEST() 27 TEST(int32_t, ((int32_t)(std::numeric_limits<uint8_t>::max)())+1, uint8_t, false); in DEF_TEST() 53 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int8_t, false); in DEF_TEST() 54 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint8_t, false); in DEF_TEST() 55 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), int32_t, false); in DEF_TEST() 56 TEST(uint32_t, (std::numeric_limits<uint32_t>::max)(), uint32_t, true); in DEF_TEST() [all …]
|
/external/libchrome/base/time/ |
D | time.cc | 26 return TimeDelta(std::numeric_limits<int64_t>::max()); in Max() 32 return std::numeric_limits<int>::max(); in InDays() 40 return std::numeric_limits<int>::max(); in InHours() 48 return std::numeric_limits<int>::max(); in InMinutes() 56 return std::numeric_limits<double>::infinity(); in InSecondsF() 64 return std::numeric_limits<int64_t>::max(); in InSeconds() 72 return std::numeric_limits<double>::infinity(); in InMillisecondsF() 80 return std::numeric_limits<int64_t>::max(); in InMilliseconds() 88 return std::numeric_limits<int64_t>::max(); in InMillisecondsRoundedUp() 97 return std::numeric_limits<int64_t>::max(); in InMicroseconds() [all …]
|
/external/opencv3/modules/cudev/include/opencv2/cudev/util/ |
D | limits.hpp | 58 template <class T> struct numeric_limits; 60 template <> struct numeric_limits<bool> struct 67 template <> struct numeric_limits<schar> struct 74 template <> struct numeric_limits<uchar> struct 81 template <> struct numeric_limits<short> struct 88 template <> struct numeric_limits<ushort> struct 95 template <> struct numeric_limits<int> struct 102 template <> struct numeric_limits<uint> struct 109 template <> struct numeric_limits<float> struct 117 template <> struct numeric_limits<double> struct
|
/external/libchrome/base/strings/ |
D | string_number_conversions_unittest.cc | 39 { std::numeric_limits<int>::max(), "2147483647", "2147483647" }, in TEST() 40 { std::numeric_limits<int>::min(), "-2147483648", "2147483648" }, in TEST() 46 std::numeric_limits<int64_t>::max(), "9223372036854775807", in TEST() 49 {std::numeric_limits<int64_t>::min(), "-9223372036854775808", in TEST() 77 {std::numeric_limits<uint64_t>::max(), "18446744073709551615"}, in TEST() 85 size_t size_t_max = std::numeric_limits<size_t>::max(); in TEST() 248 {"9223372036854775807", std::numeric_limits<int64_t>::max(), true}, in TEST() 249 {"-9223372036854775808", std::numeric_limits<int64_t>::min(), true}, in TEST() 267 {"-9223372036854775809", std::numeric_limits<int64_t>::min(), false}, in TEST() 268 {"-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<ptrdiff_t>::min()); in main() 229 assert(PTRDIFF_MAX == std::numeric_limits<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 …]
|