/external/llvm-project/pstl/test/std/algorithms/alg.nonmodifying/ |
D | count.pass.cpp | 52 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()
|
D | find.pass.cpp | 80 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()
|
D | find_if.pass.cpp | 97 …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/ |
D | replace_copy.pass.cpp | 97 …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()
|
D | remove_copy.pass.cpp | 87 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()
|
D | remove.pass.cpp | 146 test<Number>(Number(-666, OddTag()), Number(42, OddTag()), IsMultiple(3, OddTag()), in main() 147 [](int32_t j) { return Number(j, OddTag()); }); in main()
|
D | unique_copy_equal.pass.cpp | 121 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()
|
D | copy_move.pass.cpp | 193 test<Number>(Number(42, OddTag()), [](int32_t j) { return Number(j, OddTag()); }); in main()
|
/external/llvm-project/pstl/test/std/numerics/numeric.ops/ |
D | reduce.pass.cpp | 90 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/ |
D | sort.pass.cpp | 88 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/ |
D | copy_if.pass.cpp | 136 …test<Number>(Number(42, OddTag()), IsMultiple(3, OddTag()), [](int32_t j) { return Number(j, OddTa… in main()
|
/external/llvm-project/pstl/test/support/ |
D | utils.h | 508 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 …]
|