Home
last modified time | relevance | path

Searched refs:OddTag (Results 1 – 12 of 12) sorted by relevance

/external/llvm-project/pstl/test/std/algorithms/alg.nonmodifying/
Dcount.pass.cpp52 IsEqual(T value_, OddTag) : value(value_) {} in IsEqual() argument
96 test<int32_t>(42, IsEqual<int32_t>(50, OddTag()), [](int32_t j) { return j; }); in main()
100 test<float64_t>(42, IsEqual<float64_t>(50, OddTag()), [](int32_t j) { return float64_t(j); }); in main()
101 test<Number>(Number(42, OddTag()), IsEqual<Number>(Number(50, OddTag()), OddTag()), in main()
102 [](int32_t j) { return Number(j, OddTag()); }); in main()
Dfind.pass.cpp80 Weird(int32_t val, OddTag) : value(val, OddTag()) {} in Weird() argument
87 test<Number>(Weird(42, OddTag()), [](int32_t) { return Number(42, OddTag()); }, // hit in main()
88 [](int32_t j) { return Number(j == 42 ? 0 : j, OddTag()); }); // miss in main()
Dfind_if.pass.cpp97 …test<Number>(IsMultiple(5, OddTag()), [](int32_t j) { return Number(j - j % 5, OddTag()); }, // hit in main()
98 … [](int32_t j) { return Number(j % 5 == 0 ? j ^ 1 : j, OddTag()); }); // miss in main()
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/
Dreplace_copy.pass.cpp97 …test<Number>(Number(42, OddTag()), Number(2001, OddTag()), Number(2017, OddTag()), IsMultiple(3, O… in main()
98 … [](int32_t j) { return ((j + 1) % 3 & 2) != 0 ? Number(2001, OddTag()) : Number(j, OddTag()); }); in main()
Dremove_copy.pass.cpp87 test<Number>(Number(42, OddTag()), Number(2001, OddTag()), in main()
88 … [](int32_t j) { return ((j + 1) % 3 & 2) != 0 ? Number(2001, OddTag()) : Number(j, OddTag()); }); in main()
Dremove.pass.cpp146 test<Number>(Number(-666, OddTag()), Number(42, OddTag()), IsMultiple(3, OddTag()), in main()
147 [](int32_t j) { return Number(j, OddTag()); }); in main()
Dunique_copy_equal.pass.cpp121 test<Number>(Number(42, OddTag()), std::equal_to<Number>(), in main()
122 [](int32_t j) { return Number(3 * j / 13 ^ (j & 8), OddTag()); }); in main()
Dcopy_move.pass.cpp193 test<Number>(Number(42, OddTag()), [](int32_t j) { return Number(j, OddTag()); }); in main()
/external/llvm-project/pstl/test/std/numerics/numeric.ops/
Dreduce.pass.cpp90 Sum init(42, OddTag()); in test_short_forms()
92 Sequence<Sum> in(n, [n](size_t k) { return Sum((int32_t(k ^ n) % 1000 - 500), OddTag()); }); in test_short_forms()
108 …test_long_form<Number>(Number(42, OddTag()), Add(OddTag()), [](int32_t x) { return Number(x, OddTa… in main()
/external/llvm-project/pstl/test/std/algorithms/alg.sorting/
Dsort.pass.cpp88 ParanoidKey(int32_t index, int32_t value, OddTag) : value(value), index(index) {} in ParanoidKey() argument
127 KeyCompare(OddTag) : status(Live) {} in KeyCompare() argument
234 test_sort<ParanoidKey>(KeyCompare(OddTag()), in main()
235 [](size_t k, size_t val) { return ParanoidKey(k, val, OddTag()); }); in main()
/external/llvm-project/pstl/test/std/algorithms/alg.modifying.operations/alg.copy/
Dcopy_if.pass.cpp136 …test<Number>(Number(42, OddTag()), IsMultiple(3, OddTag()), [](int32_t j) { return Number(j, OddTa… in main()
/external/llvm-project/pstl/test/support/
Dutils.h508 struct OddTag struct
528 Number(int32_t val, OddTag) : value(val) {} in Number() argument
553 IsMultiple(long modulus_, OddTag) : modulus(modulus_) {} in IsMultiple() argument
571 Congruent(long modulus_, OddTag) : modulus(modulus_) {} in Congruent() argument
580 explicit Add(OddTag) : bias(1) {} in Add() argument
584 return Number(x.value + y.value + (bias - 1), OddTag()); in operator()
592 Sum() : Number(0, OddTag()) {} in Sum()
593 Sum(long x, OddTag) : Number(x, OddTag()) {} in Sum() argument
597 return Sum(x.value + y.value, OddTag());
609 MonoidElement(size_t a_, size_t b_, OddTag) : a(a_), b(b_) {} in MonoidElement() argument
[all …]