HomeSort by relevance Sort by last modified time
    Searched refs:numeric_limits (Results 1 - 25 of 800) sorted by null

1 2 3 4 5 6 7 8 91011>>

  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits/
default.pass.cpp 10 // test numeric_limits
12 // The default numeric_limits<T> template shall have all members, but with
28 static_assert(std::numeric_limits<A>::is_specialized == false,
29 "std::numeric_limits<A>::is_specialized == false");
30 assert(std::numeric_limits<A>::min() == A());
31 assert(std::numeric_limits<A>::max() == A());
32 assert(std::numeric_limits<A>::lowest() == A());
33 static_assert(std::numeric_limits<A>::digits == 0,
34 "std::numeric_limits<A>::digits == 0");
35 static_assert(std::numeric_limits<A>::digits10 == 0
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
const_data_members.pass.cpp 14 numeric_limits
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);
    [all...]
digits10.pass.cpp 10 // test numeric_limits
21 static_assert(std::numeric_limits<T>::digits10 == expected, "digits10 test 1");
22 static_assert(std::numeric_limits<T>::is_bounded, "digits10 test 5");
23 static_assert(std::numeric_limits<const T>::digits10 == expected, "digits10 test 2");
24 static_assert(std::numeric_limits<const T>::is_bounded, "digits10 test 6");
25 static_assert(std::numeric_limits<volatile T>::digits10 == expected, "digits10 test 3");
26 static_assert(std::numeric_limits<volatile T>::is_bounded, "digits10 test 7");
27 static_assert(std::numeric_limits<const volatile T>::digits10 == expected, "digits10 test 4");
28 static_assert(std::numeric_limits<const volatile T>::is_bounded, "digits10 test 8");
min.pass.cpp 10 // test numeric_limits
24 assert(std::numeric_limits<T>::min() == expected);
25 assert(std::numeric_limits<T>::is_bounded || !std::numeric_limits<T>::is_signed);
26 assert(std::numeric_limits<const T>::min() == expected);
27 assert(std::numeric_limits<const T>::is_bounded || !std::numeric_limits<const T>::is_signed);
28 assert(std::numeric_limits<volatile T>::min() == expected);
29 assert(std::numeric_limits<volatile T>::is_bounded || !std::numeric_limits<volatile T>::is_signed)
    [all...]
digits.pass.cpp 10 // test numeric_limits
21 static_assert(std::numeric_limits<T>::digits == expected, "digits test 1");
22 static_assert(std::numeric_limits<const T>::digits == expected, "digits test 2");
23 static_assert(std::numeric_limits<volatile T>::digits == expected, "digits test 3");
24 static_assert(std::numeric_limits<const volatile T>::digits == expected, "digits test 4");
30 test<char, std::numeric_limits<char>::is_signed ? 7 : 8>();
33 test<wchar_t, std::numeric_limits<wchar_t>::is_signed ? 31 : 32>();
denorm_min.pass.cpp 10 // test numeric_limits
21 assert(std::numeric_limits<T>::denorm_min() == expected);
22 assert(std::numeric_limits<const T>::denorm_min() == expected);
23 assert(std::numeric_limits<volatile T>::denorm_min() == expected);
24 assert(std::numeric_limits<const volatile T>::denorm_min() == expected);
has_denorm_loss.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::has_denorm_loss == expected, "has_denorm_loss test 1");
21 static_assert(std::numeric_limits<const T>::has_denorm_loss == expected, "has_denorm_loss test 2");
22 static_assert(std::numeric_limits<volatile T>::has_denorm_loss == expected, "has_denorm_loss test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_denorm_loss == expected, "has_denorm_loss test 4");
has_infinity.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::has_infinity == expected, "has_infinity test 1");
21 static_assert(std::numeric_limits<const T>::has_infinity == expected, "has_infinity test 2");
22 static_assert(std::numeric_limits<volatile T>::has_infinity == expected, "has_infinity test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_infinity == expected, "has_infinity test 4");
has_quiet_NaN.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::has_quiet_NaN == expected, "has_quiet_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_quiet_NaN == expected, "has_quiet_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_quiet_NaN == expected, "has_quiet_NaN test 4");
has_signaling_NaN.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::has_signaling_NaN == expected, "has_signaling_NaN test 1");
21 static_assert(std::numeric_limits<const T>::has_signaling_NaN == expected, "has_signaling_NaN test 2");
22 static_assert(std::numeric_limits<volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 3");
23 static_assert(std::numeric_limits<const volatile T>::has_signaling_NaN == expected, "has_signaling_NaN test 4");
is_bounded.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_bounded == expected, "is_bounded test 1");
21 static_assert(std::numeric_limits<const T>::is_bounded == expected, "is_bounded test 2");
22 static_assert(std::numeric_limits<volatile T>::is_bounded == expected, "is_bounded test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_bounded == expected, "is_bounded test 4");
is_exact.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_exact == expected, "is_exact test 1");
21 static_assert(std::numeric_limits<const T>::is_exact == expected, "is_exact test 2");
22 static_assert(std::numeric_limits<volatile T>::is_exact == expected, "is_exact test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_exact == expected, "is_exact test 4");
is_iec559.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_iec559 == expected, "is_iec559 test 1");
21 static_assert(std::numeric_limits<const T>::is_iec559 == expected, "is_iec559 test 2");
22 static_assert(std::numeric_limits<volatile T>::is_iec559 == expected, "is_iec559 test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_iec559 == expected, "is_iec559 test 4");
is_integer.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_integer == expected, "is_integer test 1");
21 static_assert(std::numeric_limits<const T>::is_integer == expected, "is_integer test 2");
22 static_assert(std::numeric_limits<volatile T>::is_integer == expected, "is_integer test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_integer == expected, "is_integer test 4");
is_modulo.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_modulo == expected, "is_modulo test 1");
21 static_assert(std::numeric_limits<const T>::is_modulo == expected, "is_modulo test 2");
22 static_assert(std::numeric_limits<volatile T>::is_modulo == expected, "is_modulo test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_modulo == expected, "is_modulo test 4");
is_signed.pass.cpp 10 // test numeric_limits
20 static_assert(std::numeric_limits<T>::is_signed == expected, "is_signed test 1");
21 static_assert(std::numeric_limits<const T>::is_signed == expected, "is_signed test 2");
22 static_assert(std::numeric_limits<volatile T>::is_signed == expected, "is_signed test 3");
23 static_assert(std::numeric_limits<const volatile T>::is_signed == expected, "is_signed test 4");
max_digits10.pass.cpp 10 // test numeric_limits
21 static_assert(std::numeric_limits<T>::max_digits10 == expected, "max_digits10 test 1");
22 static_assert(std::numeric_limits<const T>::max_digits10 == expected, "max_digits10 test 2");
23 static_assert(std::numeric_limits<volatile T>::max_digits10 == expected, "max_digits10 test 3");
24 static_assert(std::numeric_limits<const volatile T>::max_digits10 == expected, "max_digits10 test 4");
  /external/chromium_org/third_party/protobuf/src/google/protobuf/
generated_message_util.cc 44 return std::numeric_limits<double>::infinity();
47 return std::numeric_limits<double>::quiet_NaN();
  /external/protobuf/src/google/protobuf/
generated_message_util.cc 44 return std::numeric_limits<double>::infinity();
47 return std::numeric_limits<double>::quiet_NaN();
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/
is_specialized.pass.cpp 10 // test numeric_limits
14 // true for all such specializations of numeric_limits.
21 // The value of each member of a specialization of numeric_limits on a cv
33 static_assert(std::numeric_limits<T>::is_specialized,
34 "std::numeric_limits<T>::is_specialized");
35 static_assert(std::numeric_limits<const T>::is_specialized,
36 "std::numeric_limits<const T>::is_specialized");
37 static_assert(std::numeric_limits<volatile T>::is_specialized,
38 "std::numeric_limits<volatile T>::is_specialized");
39 static_assert(std::numeric_limits<const volatile T>::is_specialized
    [all...]
  /external/chromium_org/ui/gfx/
safe_integer_conversions.h 18 if (value >= std::numeric_limits<int>::max())
19 return std::numeric_limits<int>::max();
20 if (value <= std::numeric_limits<int>::min())
21 return std::numeric_limits<int>::min();
45 if (value > std::numeric_limits<int>::max())
47 if (value < std::numeric_limits<int>::min())
safe_integer_conversions_unittest.cc 14 EXPECT_EQ(0, ClampToInt(std::numeric_limits<float>::quiet_NaN()));
16 float max = std::numeric_limits<int>::max();
17 float min = std::numeric_limits<int>::min();
18 float infinity = std::numeric_limits<float>::infinity();
20 int int_max = std::numeric_limits<int>::max();
21 int int_min = std::numeric_limits<int>::min();
37 EXPECT_EQ(0, ToFlooredInt(std::numeric_limits<float>::quiet_NaN()));
39 float max = std::numeric_limits<int>::max();
40 float min = std::numeric_limits<int>::min();
41 float infinity = std::numeric_limits<float>::infinity()
    [all...]
  /ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
max.pass.cpp 23 std::numeric_limits<int>::max());
25 std::numeric_limits<double>::max());
27 std::numeric_limits<Rep>::max());
30 std::numeric_limits<int>::max(), "");
32 std::numeric_limits<double>::max(), "");
34 std::numeric_limits<Rep>::max(), "");
min.pass.cpp 23 std::numeric_limits<int>::lowest());
25 std::numeric_limits<double>::lowest());
27 std::numeric_limits<Rep>::lowest());
30 std::numeric_limits<int>::lowest(), "");
32 std::numeric_limits<double>::lowest(), "");
34 std::numeric_limits<Rep>::lowest(), "");
  /external/chromium/base/
rand_util_unittest.cc 13 const int kIntMin = std::numeric_limits<int>::min();
14 const int kIntMax = std::numeric_limits<int>::max();
35 EXPECT_LE(std::numeric_limits<ptrdiff_t>::max(),
36 std::numeric_limits<int64>::max());

Completed in 271 milliseconds

1 2 3 4 5 6 7 8 91011>>