Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 192) sorted by relevance

12345678

/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
Dmax.pass.cpp22 assert(std::chrono::duration_values<int>::max() == in main()
23 std::numeric_limits<int>::max()); in main()
24 assert(std::chrono::duration_values<double>::max() == in main()
25 std::numeric_limits<double>::max()); in main()
26 assert(std::chrono::duration_values<Rep>::max() == in main()
27 std::numeric_limits<Rep>::max()); in main()
29 static_assert(std::chrono::duration_values<int>::max() == in main()
30 std::numeric_limits<int>::max(), ""); in main()
31 static_assert(std::chrono::duration_values<double>::max() == in main()
32 std::numeric_limits<double>::max(), ""); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/template.bitset/bitset.members/
Dto_ullong.pass.cpp22 const unsigned long long max = M == 0 ? 0 : (unsigned long long)(-1) >> X; in test_to_ullong() local
24 std::min<unsigned long long>(1, max), in test_to_ullong()
25 std::min<unsigned long long>(2, max), in test_to_ullong()
26 std::min<unsigned long long>(3, max), in test_to_ullong()
27 std::min(max, max-3), in test_to_ullong()
28 std::min(max, max-2), in test_to_ullong()
29 std::min(max, max-1), in test_to_ullong()
30 max}; in test_to_ullong()
Dto_ulong.pass.cpp23 … const std::size_t max = M == 0 ? 0 : std::size_t(std::numeric_limits<unsigned long>::max()) >> X; in test_to_ulong() local
25 std::min<std::size_t>(1, max), in test_to_ulong()
26 std::min<std::size_t>(2, max), in test_to_ulong()
27 std::min<std::size_t>(3, max), in test_to_ulong()
28 std::min(max, max-3), in test_to_ulong()
29 std::min(max, max-2), in test_to_ulong()
30 std::min(max, max-1), in test_to_ulong()
31 max}; in test_to_ulong()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.min.max/
Dmax_init_list.pass.cpp22 int i = std::max({2, 3, 1}); in main()
24 i = std::max({2, 1, 3}); in main()
26 i = std::max({3, 1, 2}); in main()
28 i = std::max({3, 2, 1}); in main()
30 i = std::max({1, 2, 3}); in main()
32 i = std::max({1, 3, 2}); in main()
36 static_assert(std::max({1, 3, 2}) == 3, ""); in main()
37 static_assert(std::max({2, 1, 3}) == 3, ""); in main()
38 static_assert(std::max({3, 2, 1}) == 3, ""); in main()
Dmax_init_list_comp.pass.cpp23 int i = std::max({2, 3, 1}, std::greater<int>()); in main()
25 i = std::max({2, 1, 3}, std::greater<int>()); in main()
27 i = std::max({3, 1, 2}, std::greater<int>()); in main()
29 i = std::max({3, 2, 1}, std::greater<int>()); in main()
31 i = std::max({1, 2, 3}, std::greater<int>()); in main()
33 i = std::max({1, 3, 2}, std::greater<int>()); in main()
37 static_assert(std::max({1, 3, 2}, std::greater<int>()) == 1, ""); in main()
38 static_assert(std::max({2, 1, 3}, std::greater<int>()) == 1, ""); in main()
39 static_assert(std::max({3, 2, 1}, std::greater<int>()) == 1, ""); in main()
Dmax.pass.cpp23 assert(&std::max(a, b) == &x); in test()
50 static_assert(std::max(x, y) == x, "" ); in main()
51 static_assert(std::max(y, x) == x, "" ); in main()
Dmax_comp.pass.cpp25 assert(&std::max(a, b, c) == &x); in test()
52 static_assert(std::max(x, y, std::greater<int>()) == y, "" ); in main()
53 static_assert(std::max(y, x, std::greater<int>()) == y, "" ); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
Deval.pass.cpp29 std::vector<D::result_type> u(d.max()+1); in main()
33 assert(d.min() <= v && v <= d.max()); in main()
37 for (int i = 0; i <= d.max(); ++i) in main()
47 std::vector<D::result_type> u(d.max()+1); in main()
51 assert(d.min() <= v && v <= d.max()); in main()
55 for (int i = 0; i <= d.max(); ++i) in main()
65 std::vector<D::result_type> u(d.max()+1); in main()
69 assert(d.min() <= v && v <= d.max()); in main()
73 for (int i = 0; i <= d.max(); ++i) in main()
83 std::vector<D::result_type> u(d.max()+1); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.util/rand.util.canonical/
Dgenerate_canonical.pass.cpp25 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
32 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
39 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
46 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
53 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
61 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
68 assert(f == (16807 - E::min()) / (E::max() - E::min() + F(1))); in main()
77 (282475249 - E::min()) * (E::max() - E::min() + F(1))) / in main()
78 ((E::max() - E::min() + F(1)) * (E::max() - E::min() + F(1)))); in main()
87 (282475249 - E::min()) * (E::max() - E::min() + F(1))) / in main()
[all …]
/ndk/sources/third_party/googletest/googletest/samples/
Dprime_tables.h83 explicit PreCalculatedPrimeTable(int max) in PreCalculatedPrimeTable() argument
84 : is_prime_size_(max + 1), is_prime_(new bool[max + 1]) { in PreCalculatedPrimeTable()
85 CalculatePrimesUpTo(max); in PreCalculatedPrimeTable()
102 void CalculatePrimesUpTo(int max) { in CalculatePrimesUpTo() argument
106 for (int i = 2; i <= max; i++) { in CalculatePrimesUpTo()
110 for (int j = 2*i; j <= max; j += i) { in CalculatePrimesUpTo()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
D__undef_min_max21 #ifdef max
23 _LIBCPP_WARNING("macro max is incompatible with C++. Try #define NOMINMAX "
24 "before any Windows header. #undefing max")
26 #warning: macro max is incompatible with C++. #undefing max
28 #undef max
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.special/
Dmax.pass.cpp27 Rep max_rep = std::chrono::duration_values<Rep>::max(); in test()
28 assert(D::max().count() == max_rep); in test()
33 constexpr Rep max_rep = std::chrono::duration_values<Rep>::max(); in test()
34 static_assert(D::max().count() == max_rep, ""); in test()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
Dlimits.hpp45 static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x7FFFFFFFFFFFFFFFi64; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
48 static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MAX; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
51 static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MAX; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
54 static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~(min)(); } in BOOST_PREVENT_MACRO_SUBSTITUTION()
98 static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0xFFFFFFFFFFFFFFFFui64; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
101 static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MAX; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
104 static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MAX; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
107 static BOOST_ULLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~0uLL; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/localization/locale.categories/category.monetary/locale.moneypunct/locale.moneypunct.members/
Ddecimal_point.pass.cpp61 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main()
65 assert(f.decimal_point() == std::numeric_limits<char>::max()); in main()
69 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main()
73 assert(f.decimal_point() == std::numeric_limits<wchar_t>::max()); in main()
Dthousands_sep.pass.cpp61 assert(f.thousands_sep() == std::numeric_limits<char>::max()); in main()
65 assert(f.thousands_sep() == std::numeric_limits<char>::max()); in main()
69 assert(f.thousands_sep() == std::numeric_limits<wchar_t>::max()); in main()
73 assert(f.thousands_sep() == std::numeric_limits<wchar_t>::max()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.members/
Dmax.pass.cpp26 assert(v1.max() == 4.0); in main()
31 v1.max(); in main()
38 assert((2*v1).max() == 8.0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
Dmax.pass.cpp24 assert(std::numeric_limits<T>::max() == expected); in test()
26 assert(std::numeric_limits<const T>::max() == expected); in test()
28 assert(std::numeric_limits<volatile T>::max() == expected); in test()
30 assert(std::numeric_limits<const volatile T>::max() == expected); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/depr/depr.c.headers/
Dstdint_h.pass.cpp210 assert(INTPTR_MAX == std::numeric_limits<intptr_t>::max()); in main()
213 assert(UINTPTR_MAX == std::numeric_limits<uintptr_t>::max()); in main()
219 assert(INTMAX_MAX == std::numeric_limits<intmax_t>::max()); in main()
222 assert(UINTMAX_MAX == std::numeric_limits<uintmax_t>::max()); in main()
228 assert(PTRDIFF_MAX == std::numeric_limits<ptrdiff_t>::max()); in main()
234 assert(SIG_ATOMIC_MAX == std::numeric_limits<sig_atomic_t>::max()); in main()
237 assert(SIZE_MAX == std::numeric_limits<size_t>::max()); in main()
243 assert(WCHAR_MAX == std::numeric_limits<wchar_t>::max()); in main()
249 assert(WINT_MAX == std::numeric_limits<wint_t>::max()); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/numeric/conversion/detail/
Dbounds.hpp27 static N highest () { return limits::max BOOST_PREVENT_MACRO_SUBSTITUTION (); } in highest()
38 … static N lowest () { return static_cast<N>(-limits::max BOOST_PREVENT_MACRO_SUBSTITUTION ()) ; } in lowest()
39 static N highest () { return limits::max BOOST_PREVENT_MACRO_SUBSTITUTION (); } in highest()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.negbin/
Dmax.pass.cpp25 assert(d.max() == std::numeric_limits<int>::max()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.geo/
Dmax.pass.cpp25 assert(d.max() == std::numeric_limits<int>::max()); in main()
/ndk/tests/device/test-stlport/unit/
Dmax_test.cpp39 int r = max(42, 100); in max1()
42 int t = max(++r, 0); in max1()
47 const char* r = max((const char*)"shoe", (const char*)"shine", str_compare); in max2()
/ndk/tests/device/test-gnustl-full/unit/
Dmax_test.cpp39 int r = max(42, 100); in max1()
42 int t = max(++r, 0); in max1()
47 const char* r = max((const char*)"shoe", (const char*)"shine", str_compare); in max2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.pois/rand.dist.pois.poisson/
Dmax.pass.cpp25 D::result_type m = d.max(); in main()
26 assert(m == std::numeric_limits<int>::max()); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/cstdint/cstdint.syn/
Dcstdint.pass.cpp210 assert(INTPTR_MAX == std::numeric_limits<std::intptr_t>::max()); in main()
213 assert(UINTPTR_MAX == std::numeric_limits<std::uintptr_t>::max()); in main()
219 assert(INTMAX_MAX == std::numeric_limits<std::intmax_t>::max()); in main()
222 assert(UINTMAX_MAX == std::numeric_limits<std::uintmax_t>::max()); in main()
228 assert(PTRDIFF_MAX == std::numeric_limits<std::ptrdiff_t>::max()); in main()
234 assert(SIG_ATOMIC_MAX == std::numeric_limits<std::sig_atomic_t>::max()); in main()
237 assert(SIZE_MAX == std::numeric_limits<std::size_t>::max()); in main()
243 assert(WCHAR_MAX == std::numeric_limits<wchar_t>::max()); in main()
249 assert(WINT_MAX == std::numeric_limits<std::wint_t>::max()); in main()

12345678