Home
last modified time | relevance | path

Searched refs:multiplies (Results 1 – 25 of 219) sorted by relevance

123456789

/external/llvm-project/libcxx/test/std/numerics/numeric.ops/transform.reduce/
Dtransform_reduce_iter_iter_iter_init_op_op.pass.cpp48 test(SIter(ia), SIter(ia), UIter(ua), 0, std::plus<>(), std::multiplies<>(), 0); in test()
49 test(UIter(ua), UIter(ua), SIter(ia), 1, std::multiplies<>(), std::plus<>(), 1); in test()
50 test(SIter(ia), SIter(ia+1), UIter(ua), 0, std::multiplies<>(), std::plus<>(), 0); in test()
51 test(UIter(ua), UIter(ua+1), SIter(ia), 2, std::plus<>(), std::multiplies<>(), 4); in test()
52 test(SIter(ia), SIter(ia+2), UIter(ua), 0, std::plus<>(), std::multiplies<>(), 10); in test()
53 test(UIter(ua), UIter(ua+2), SIter(ia), 3, std::multiplies<>(), std::plus<>(), 54); in test()
54 test(SIter(ia), SIter(ia+sa), UIter(ua), 4, std::multiplies<>(), std::plus<>(), 2099520); in test()
55 test(UIter(ua), UIter(ua+sa), SIter(ia), 4, std::plus<>(), std::multiplies<>(), 186); in test()
64 decltype(std::transform_reduce(p, p, p, Init{}, std::plus<>(), std::multiplies<>()))> ); in test_return_type()
Dtransform_reduce_iter_iter_init_bop_uop.pass.cpp63 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), identity(), 1); in test()
64 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), identity(), 0); in test()
67 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), identity(), 6); in test()
68 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), identity(), 2880); in test()
72 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), twice(), 1); in test()
73 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), twice(), 0); in test()
76 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), twice(), 24); in test()
77 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), twice(), 184320); // 64 * 2880 in test()
122 unsigned res = std::transform_reduce(v.begin(), v.end(), 1U, std::multiplies<>(), twice()); in test()
/external/libcxx/test/std/numerics/numeric.ops/transform.reduce/
Dtransform_reduce_iter_iter_iter_init_op_op.pass.cpp45 test(SIter(ia), SIter(ia), UIter(ua), 0, std::plus<>(), std::multiplies<>(), 0); in test()
46 test(UIter(ua), UIter(ua), SIter(ia), 1, std::multiplies<>(), std::plus<>(), 1); in test()
47 test(SIter(ia), SIter(ia+1), UIter(ua), 0, std::multiplies<>(), std::plus<>(), 0); in test()
48 test(UIter(ua), UIter(ua+1), SIter(ia), 2, std::plus<>(), std::multiplies<>(), 4); in test()
49 test(SIter(ia), SIter(ia+2), UIter(ua), 0, std::plus<>(), std::multiplies<>(), 10); in test()
50 test(UIter(ua), UIter(ua+2), SIter(ia), 3, std::multiplies<>(), std::plus<>(), 54); in test()
51 test(SIter(ia), SIter(ia+sa), UIter(ua), 4, std::multiplies<>(), std::plus<>(), 2099520); in test()
52 test(UIter(ua), UIter(ua+sa), SIter(ia), 4, std::plus<>(), std::multiplies<>(), 186); in test()
60 decltype(std::transform_reduce(p, p, p, Init{}, std::plus<>(), std::multiplies<>()))> ); in test_return_type()
Dtransform_reduce_iter_iter_init_bop_uop.pass.cpp60 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), identity(), 1); in test()
61 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), identity(), 0); in test()
64 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), identity(), 6); in test()
65 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), identity(), 2880); in test()
69 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), twice(), 1); in test()
70 test(Iter(ia), Iter(ia+1), 0, std::multiplies<>(), twice(), 0); in test()
73 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), twice(), 24); in test()
74 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), twice(), 184320); // 64 * 2880 in test()
116 unsigned res = std::transform_reduce(v.begin(), v.end(), 1U, std::multiplies<>(), twice()); in main()
/external/llvm-project/libcxx/test/std/utilities/function.objects/arithmetic.operations/
Dmultiplies.pass.cpp21 typedef std::multiplies<int> F; in main()
28 typedef std::multiplies<> F2; in main()
34 constexpr int foo = std::multiplies<int> () (3, 2); in main()
37 constexpr double bar = std::multiplies<> () (3.0, 2); in main()
Dtransparent.pass.cpp39 static_assert ( !is_transparent<std::multiplies<int>>::value, "" ); in main()
40 static_assert ( !is_transparent<std::multiplies<std::string>>::value, "" ); in main()
41 static_assert ( is_transparent<std::multiplies<void>>::value, "" ); in main()
42 static_assert ( is_transparent<std::multiplies<>>::value, "" ); in main()
/external/libcxx/test/std/utilities/function.objects/arithmetic.operations/
Dmultiplies.pass.cpp22 typedef std::multiplies<int> F; in main()
29 typedef std::multiplies<> F2; in main()
35 constexpr int foo = std::multiplies<int> () (3, 2); in main()
38 constexpr double bar = std::multiplies<> () (3.0, 2); in main()
Dtransparent.pass.cpp38 static_assert ( !is_transparent<std::multiplies<int>>::value, "" ); in main()
39 static_assert ( !is_transparent<std::multiplies<std::string>>::value, "" ); in main()
40 static_assert ( is_transparent<std::multiplies<void>>::value, "" ); in main()
41 static_assert ( is_transparent<std::multiplies<>>::value, "" ); in main()
/external/libcxx/test/std/numerics/numeric.ops/reduce/
Dreduce_init_op.pass.cpp36 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), 1); in test()
38 test(Iter(ia), Iter(ia+1), 2, std::multiplies<>(), 2); in test()
40 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), 6); in test()
42 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), 2880); in test()
71 unsigned res = std::reduce(v.begin(), v.end(), 1U, std::multiplies<>()); in main()
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/reduce/
Dreduce_init_op.pass.cpp39 test(Iter(ia), Iter(ia), 1, std::multiplies<>(), 1); in test()
41 test(Iter(ia), Iter(ia+1), 2, std::multiplies<>(), 2); in test()
43 test(Iter(ia), Iter(ia+2), 3, std::multiplies<>(), 6); in test()
45 test(Iter(ia), Iter(ia+sa), 4, std::multiplies<>(), 2880); in test()
76 unsigned res = std::reduce(v.begin(), v.end(), 1U, std::multiplies<>()); in test()
/external/llvm-project/llvm/test/Transforms/Reassociate/
Drepeats.ll49 ; Can be done with two multiplies.
62 ; Can be done with two multiplies.
76 ; Can be done with two multiplies.
91 ; Can be done with two multiplies.
107 ; Can be done with three multiplies.
125 ; Can be done with three multiplies.
144 ; Can be done with four multiplies.
165 ; Can be done with two multiplies.
185 ; Can be done with three multiplies.
207 ; Can be done with three multiplies.
[all …]
/external/llvm/test/Transforms/Reassociate/
Drepeats.ll49 ; Can be done with two multiplies.
62 ; Can be done with two multiplies.
76 ; Can be done with two multiplies.
91 ; Can be done with two multiplies.
107 ; Can be done with three multiplies.
125 ; Can be done with three multiplies.
144 ; Can be done with four multiplies.
165 ; Can be done with two multiplies.
185 ; Can be done with three multiplies.
207 ; Can be done with three multiplies.
[all …]
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/transform.exclusive.scan/
Dtransform_exclusive_scan_init_bop_uop.pass.cpp100 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 0, mResI0, mResI0 + i); in test()
102 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
104 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 2, mResI2, mResI2 + i); in test()
106 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
167 …usive_scan(v.begin(), v.end(), std::back_inserter(res), size_t{1}, std::multiplies<>(), add_one{}); in basic_tests()
170 …std::transform_exclusive_scan(v.begin(), v.end(), res.begin(), size_t{1}, std::multiplies<>(), add… in basic_tests()
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/
Dtransform_inclusive_scan_bop_uop_init.pass.cpp101 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 0, mResI0, mResI0 + i); in test()
103 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
105 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 2, mResI2, mResI2 + i); in test()
107 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
168 …std::transform_inclusive_scan(v.begin(), v.end(), std::back_inserter(res), std::multiplies<>(), ad… in basic_tests()
171 …std::transform_inclusive_scan(v.begin(), v.end(), res.begin(), std::multiplies<>(), add_one{}, siz… in basic_tests()
Dtransform_inclusive_scan_bop_uop.pass.cpp93 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, mResI0, mResI0 + i); in test()
95 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), mResN0, mResN0 + i); in test()
/external/libcxx/test/std/numerics/numeric.ops/transform.inclusive.scan/
Dtransform_inclusive_scan_bop_uop_init.pass.cpp80 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 0, mResI0, mResI0 + i); in test()
82 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
84 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 2, mResI2, mResI2 + i); in test()
86 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
130 …std::transform_inclusive_scan(v.begin(), v.end(), std::back_inserter(res), std::multiplies<>(), ad… in basic_tests()
Dtransform_inclusive_scan_bop_uop.pass.cpp73 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, mResI0, mResI0 + i); in test()
75 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), mResN0, mResN0 + i); in test()
/external/libcxx/test/std/numerics/numeric.ops/transform.exclusive.scan/
Dtransform_exclusive_scan_init_bop_uop.pass.cpp80 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 0, mResI0, mResI0 + i); in test()
82 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 0, mResN0, mResN0 + i); in test()
84 test(Iter(ia), Iter(ia + i), std::multiplies<>(), add_one{}, 2, mResI2, mResI2 + i); in test()
86 test(Iter(ia), Iter(ia + i), std::multiplies<>(), std::negate<>(), 2, mResN2, mResN2 + i); in test()
130 …usive_scan(v.begin(), v.end(), std::back_inserter(res), size_t{1}, std::multiplies<>(), add_one{}); in basic_tests()
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/exclusive.scan/
Dexclusive_scan_init_op.pass.cpp79 test(Iter(ia), Iter(ia + i), 1, std::multiplies<>(), mRes, mRes + i); in test()
105 std::exclusive_scan(v.begin(), v.end(), std::back_inserter(res), 1, std::multiplies<>()); in test()
108 std::exclusive_scan(v.begin(), v.end(), res.begin(), 1, std::multiplies<>()); in test()
/external/llvm-project/pstl/test/std/numerics/numeric.ops/
Dtransform_reduce.pass.cpp116 …test_by_type<int32_t>(42, std::plus<int32_t>(), std::multiplies<int32_t>(), std::negate<int32_t>(), in main()
122 …1.0f, std::multiplies<float32_t>(), [](const float32_t& a, const float32_t& b) -> float32_t { retu… in main()
124 …test_by_type<MyClass>(MyClass(), std::plus<MyClass>(), std::multiplies<MyClass>(), std::negate<MyC… in main()
/external/webrtc/modules/audio_processing/aec3/
Daec3_fft.cc132 fft.begin(), std::multiplies<float>()); in PaddedFft()
135 fft.begin() + x_old.size(), std::multiplies<float>()); in PaddedFft()
/external/libcxx/test/std/numerics/numeric.ops/exclusive.scan/
Dexclusive_scan_init_op.pass.cpp59 test(Iter(ia), Iter(ia + i), 1, std::multiplies<>(), mRes, mRes + i); in test()
78 std::exclusive_scan(v.begin(), v.end(), std::back_inserter(res), 1, std::multiplies<>()); in main()
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/inclusive.scan/
Dinclusive_scan_op_init.pass.cpp79 test(Iter(ia), Iter(ia + i), std::multiplies<>(), 1, mRes, mRes + i); in test()
140 … std::inclusive_scan(v.begin(), v.end(), std::back_inserter(res), std::multiplies<>(), size_t{1}); in basic_tests()
143 std::inclusive_scan(v.begin(), v.end(), res.begin(), std::multiplies<>(), size_t{1}); in basic_tests()
/external/libcxx/test/std/numerics/numeric.ops/inclusive.scan/
Dinclusive_scan_op_init.pass.cpp59 test(Iter(ia), Iter(ia + i), std::multiplies<>(), 1, mRes, mRes + i); in test()
103 … std::inclusive_scan(v.begin(), v.end(), std::back_inserter(res), std::multiplies<>(), size_t{1}); in basic_tests()
/external/skia/resources/sksl/shared/
DCommaSideEffects.sksl15 // These uniforms only contain 1s and 0s so these multiplies should be no-ops.

123456789