Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 180) sorted by relevance

12345678

/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()
76 (16807 - E::min() + 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()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/algorithms/alg.sorting/alg.min.max/
Dmin_init_list.pass.cpp22 int i = std::min({2, 3, 1}); in main()
24 i = std::min({2, 1, 3}); in main()
26 i = std::min({3, 1, 2}); in main()
28 i = std::min({3, 2, 1}); in main()
30 i = std::min({1, 2, 3}); in main()
32 i = std::min({1, 3, 2}); in main()
36 static_assert(std::min({1, 3, 2}) == 1, ""); in main()
37 static_assert(std::min({2, 1, 3}) == 1, ""); in main()
38 static_assert(std::min({3, 2, 1}) == 1, ""); in main()
Dmin_init_list_comp.pass.cpp23 int i = std::min({2, 3, 1}, std::greater<int>()); in main()
25 i = std::min({2, 1, 3}, std::greater<int>()); in main()
27 i = std::min({3, 1, 2}, std::greater<int>()); in main()
29 i = std::min({3, 2, 1}, std::greater<int>()); in main()
31 i = std::min({1, 2, 3}, std::greater<int>()); in main()
33 i = std::min({1, 3, 2}, std::greater<int>()); in main()
37 static_assert(std::min({1, 3, 2}, std::greater<int>()) == 3, ""); in main()
38 static_assert(std::min({2, 1, 3}, std::greater<int>()) == 3, ""); in main()
39 static_assert(std::min({3, 2, 1}, std::greater<int>()) == 3, ""); in main()
Dmin.pass.cpp23 assert(&std::min(a, b) == &x); in test()
50 static_assert(std::min(x, y) == y, "" ); in main()
51 static_assert(std::min(y, x) == y, "" ); in main()
Dmin_comp.pass.cpp25 assert(&std::min(a, b, c) == &x); in test()
52 static_assert(std::min(x, y, std::greater<int>()) == x, "" ); in main()
53 static_assert(std::min(y, x, std::greater<int>()) == x, "" ); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.traits/time.traits.duration_values/
Dmin.pass.cpp22 assert(std::chrono::duration_values<int>::min() == in main()
24 assert(std::chrono::duration_values<double>::min() == in main()
26 assert(std::chrono::duration_values<Rep>::min() == in main()
29 static_assert(std::chrono::duration_values<int>::min() == in main()
31 static_assert(std::chrono::duration_values<double>::min() == in main()
33 static_assert(std::chrono::duration_values<Rep>::min() == in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/template.bitset/bitset.members/
Dto_ullong.pass.cpp24 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()
Dto_ulong.pass.cpp25 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()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/include/
D__undef_min_max11 #ifdef min
13 _LIBCPP_WARNING("macro min is incompatible with C++. Try #define NOMINMAX "
14 "before any Windows header. #undefing min")
16 #warning: macro min is incompatible with C++. #undefing min
18 #undef min
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.literals/
Dliterals1.pass.cpp23 minutes min = 36min; in main() local
24 assert ( min == minutes(36)); in main()
25 auto min2 = 36.0min; in main()
26 assert ( min == min2 ); in main()
Dliterals2.pass.cpp26 std::chrono::minutes min = 36min; in main() local
27 assert ( min == std::chrono::minutes(36)); in main()
28 auto min2 = 36.0min; in main()
29 assert ( min == min2 ); in main()
Dliterals.pass.cpp23 static_assert ( std::is_same<decltype( 3min ), std::chrono::minutes>::value, "" ); in main()
34 std::chrono::minutes min = 36min; in main() local
35 assert ( min == std::chrono::minutes(36)); in main()
36 auto min2 = 36.0min; in main()
37 assert ( min == min2 ); in main()
/ndk/tests/device/issue42891-boost-1_52/jni/boost/boost/
Dlimits.hpp44 static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0x8000000000000000i64; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
47 static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LLONG_MIN; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
50 static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return LONGLONG_MIN; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
53 …static BOOST_LLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 1LL << (sizeof(BOOST_LLT) * CHAR_… in BOOST_PREVENT_MACRO_SUBSTITUTION()
54 static BOOST_LLT max BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ~(min)(); } in BOOST_PREVENT_MACRO_SUBSTITUTION()
97 static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0ui64; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
100 static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULLONG_MIN; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
103 static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return ULONGLONG_MIN; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
106 static BOOST_ULLT min BOOST_PREVENT_MACRO_SUBSTITUTION (){ return 0uLL; } in BOOST_PREVENT_MACRO_SUBSTITUTION()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.duration/time.duration.special/
Dmin.pass.cpp27 Rep min_rep = std::chrono::duration_values<Rep>::min(); in test()
28 assert(D::min().count() == min_rep); in test()
33 constexpr Rep min_rep = std::chrono::duration_values<Rep>::min(); in test()
34 static_assert(D::min().count() == min_rep, ""); in test()
/ndk/tests/device/test-stlport/unit/
Dlimits_test.cpp77 CHECK_COND(lim::min() < lim::max()); in test_integral_limits_base()
78 …CHECK_COND((unknown_sign && ((lim::is_signed && (lim::min() != 0)) || (!lim::is_signed && (lim::mi… in test_integral_limits_base()
98 _Tp tmp = lim::min(); in test_integral_limits()
99 CHECK_COND( --tmp > lim::min() ); in test_integral_limits()
132 CHECK_COND(lim::min() > 0); in test_float_limits()
133 CHECK_COND(lim::min() < 0.001); in test_float_limits()
144 CHECK_COND(lim::denorm_min() == lim::min()); in test_float_limits()
145 _Tp tmp = lim::min(); in test_float_limits()
147 if (tmp > 0 && tmp < lim::min()) { in test_float_limits()
154 CHECK_COND(lim::denorm_min() < lim::min()); in test_float_limits()
[all …]
Dmin_test.cpp38 int r = min(42, 100); in min1()
41 r = min(--r, r); in min1()
46 const char* r = min((const char*)"shoe", (const char*)"shine", str_compare); in min2()
/ndk/tests/device/test-gnustl-full/unit/
Dlimits_test.cpp77 CHECK_COND(lim::min() < lim::max()); in test_integral_limits_base()
78 …CHECK_COND((unknown_sign && ((lim::is_signed && (lim::min() != 0)) || (!lim::is_signed && (lim::mi… in test_integral_limits_base()
98 _Tp tmp = lim::min(); in test_integral_limits()
99 CHECK_COND( --tmp > lim::min() ); in test_integral_limits()
132 CHECK_COND(lim::min() > 0); in test_float_limits()
133 CHECK_COND(lim::min() < 0.001); in test_float_limits()
144 CHECK_COND(lim::denorm_min() == lim::min()); in test_float_limits()
145 _Tp tmp = lim::min(); in test_float_limits()
147 if (tmp > 0 && tmp < lim::min()) { in test_float_limits()
154 CHECK_COND(lim::denorm_min() < lim::min()); in test_float_limits()
[all …]
Dmin_test.cpp38 int r = min(42, 100); in min1()
41 r = min(--r, r); in min1()
46 const char* r = min((const char*)"shoe", (const char*)"shine", str_compare); in min2()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/numarray/template.valarray/valarray.members/
Dmin.pass.cpp26 assert(v1.min() == -3.0); in main()
31 v1.min(); in main()
38 assert((2*v1).min() == -6.0); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/language.support/support.limits/limits/numeric.limits.members/
Dmin.pass.cpp24 assert(std::numeric_limits<T>::min() == expected); in test()
26 assert(std::numeric_limits<const T>::min() == expected); in test()
28 assert(std::numeric_limits<volatile T>::min() == expected); in test()
30 assert(std::numeric_limits<const volatile T>::min() == expected); in test()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/utilities/time/time.point/time.point.special/
Dmin.pass.cpp24 assert(TP::min() == TP(Duration::min())); in main()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.discrete/
Deval.pass.cpp33 assert(d.min() <= v && v <= d.max()); in main()
51 assert(d.min() <= v && v <= d.max()); in main()
69 assert(d.min() <= v && v <= d.max()); in main()
87 assert(d.min() <= v && v <= d.max()); in main()
105 assert(d.min() <= v && v <= d.max()); in main()
123 assert(d.min() <= v && v <= d.max()); in main()
141 assert(d.min() <= v && v <= d.max()); in main()
162 assert(d.min() <= v && v <= d.max()); in main()
183 assert(d.min() <= v && v <= d.max()); in main()
204 assert(d.min() <= v && v <= d.max()); in main()
[all …]
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.adapt/rand.adapt.ibits/
Dvalues.pass.cpp31 /*static_*/assert((E::min() == 0)/*, ""*/); in test1()
39 /*static_*/assert((E::min() == 0)/*, ""*/); in test2()
/ndk/sources/cxx-stl/stlport/src/
Dcodecvt.cpp34 { return (int)(min) ( __STATIC_CAST(size_t, (end - from)), mx); } in do_length()
90 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_out()
105 ptrdiff_t len = (min) (from_end - from, to_limit - to); in do_in()
132 { return (int)(min) ((size_t) (end - from), mx); } in do_length()
/ndk/sources/cxx-stl/llvm-libc++/libcxx/test/numerics/rand/rand.adapt/rand.adapt.disc/
Dvalues.pass.cpp38 /*static_*/assert((E::min() == 0)/*, ""*/); in test1()
50 /*static_*/assert((E::min() == 0)/*, ""*/); in test2()

12345678