Home
last modified time | relevance | path

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

123456

/external/libcxx/test/std/numerics/numeric.ops/transform.reduce/
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()
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()
/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/swiftshader/third_party/llvm-7.0/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/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/tensorflow/tensorflow/compiler/xla/service/llvm_ir/
Dkernel_tiling.h115 return absl::c_accumulate(dims_in_tiles_, 1LL, std::multiplies<int64>()); in GetNumberOfTilesInTotal()
118 return absl::c_accumulate(block_sizes_, 1, std::multiplies<int64>()); in GetNumberOfTilesInOneBlock()
125 return absl::c_accumulate(dims_in_blocks_, 1, std::multiplies<int64>()); in GetNumberOfBlocks()
/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/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/llvm/docs/
DCompileCudaWithLLVM.rst61 which multiplies a ``float`` array by a ``float`` scalar (AXPY).
166 * ``on``: fuse multiplies and adds within a single statement, but never
168 multiplies and adds.
169 * ``fast``: fuse multiplies and adds wherever profitable, even across
170 statements. Doesn't prevent ptxas from fusing additional multiplies and
/external/swiftshader/third_party/LLVM/test/CodeGen/X86/
Dpowi.ll2 ; Ideally this would compile to 5 multiplies.
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/X86/
Dcombine-multiplies.ll60 ; Test for the same optimization on vector multiplies.
95 ; Again, we want to make sure we don't generate two different multiplies.
98 ; do 2 adds, followed by 2 multiplies (i.e. 4 pmuludq instructions).
/external/llvm/test/CodeGen/X86/
Dcombine-multiplies.ll56 ; Test for the same optimization on vector multiplies.
91 ; Again, we want to make sure we don't generate two different multiplies.
94 ; do 2 adds, followed by 2 multiplies (i.e. 4 pmuludq instructions).
/external/swiftshader/third_party/LLVM/test/Transforms/Reassociate/
Dmulfactor.ll3 ; This should have exactly 2 multiplies when we're done.
/external/libcxx/test/std/numerics/numeric.ops/accumulate/
Daccumulate_op.pass.cpp29 assert(std::accumulate(first, last, init, std::multiplies<T>()) == x); in test()
/external/swiftshader/third_party/LLVM/test/Transforms/LoopStrengthReduce/
Dvariable_stride.ll1 ; Check that variable strides are reduced to adds instead of multiplies.
/external/llvm/test/CodeGen/AArch64/
Dmachine-combiner.ll94 ; Verify that scalar single-precision multiplies are reassociated.
122 ; Verify that scalar double-precision multiplies are reassociated.
182 ; Verify that 128-bit vector single-precision multiplies are reassociated.
196 ; Verify that 128-bit vector double-precision multiplies are reassociated.
/external/swiftshader/third_party/llvm-7.0/llvm/test/Transforms/LoopStrengthReduce/
Dvariable_stride.ll1 ; Check that variable strides are reduced to adds instead of multiplies.
/external/llvm/test/Transforms/LoopStrengthReduce/
Dvariable_stride.ll1 ; Check that variable strides are reduced to adds instead of multiplies.
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/SystemZ/
Dint-mul-11.ll23 ; Verify that we still use MSGFR for i32->i64 multiplies.
/external/swiftshader/third_party/llvm-7.0/llvm/test/CodeGen/AArch64/
Dmachine-combiner.ll99 ; Verify that scalar single-precision multiplies are reassociated.
127 ; Verify that scalar double-precision multiplies are reassociated.
187 ; Verify that 128-bit vector single-precision multiplies are reassociated.
201 ; Verify that 128-bit vector double-precision multiplies are reassociated.

123456