Home
last modified time | relevance | path

Searched refs:accumulate (Results 1 – 25 of 597) sorted by relevance

12345678910>>...24

/external/llvm-project/clang-tools-extra/test/clang-tidy/checkers/
Dbugprone-fold-init-type.cpp5 T accumulate(InputIt first, InputIt last, T init);
43 return std::accumulate(a, a + 1, 0); in accumulatePositive1()
49 return std::accumulate(it, it, 0); in accumulatePositive2()
55 return std::accumulate(a, a + 1, 0.0f); in accumulatePositive3()
61 return std::accumulate(it, it, 0); in accumulatePositive4()
67 return std::accumulate(it, it, 0); in accumulatePositive5()
73 return std::accumulate(it, it, 0); in accumulatePositive6()
79 return std::accumulate(it, it, 0); in accumulatePositive7()
85 return std::accumulate(it, it, 0); in accumulatePositive8()
120 return std::accumulate(a, a + 1, 0.0); in negative1()
[all …]
/external/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/
Dgcd.pass.cpp59 bool accumulate = true; in do_test() local
63 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
64 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test()
65 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
66 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test()
67 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
68 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test()
69 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
70 accumulate &= test0<S2, S1, Output>(-TC.x, -TC.y, TC.expect); in do_test()
74 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
[all …]
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.gcd/
Dgcd.pass.cpp59 bool accumulate = true; in do_test() local
63 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
64 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test()
65 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
66 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test()
67 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
68 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test()
69 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
70 accumulate &= test0<S2, S1, Output>(-TC.x, -TC.y, TC.expect); in do_test()
74 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
[all …]
/external/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/
Dlcm.pass.cpp58 bool accumulate = true; in do_test() local
62 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
63 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test()
64 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
65 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test()
66 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
67 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test()
68 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
69 accumulate &= test0<S2, S1, Output>(-TC.x, -TC.y, TC.expect); in do_test()
73 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
[all …]
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/numeric.ops.lcm/
Dlcm.pass.cpp56 bool accumulate = true; in do_test() local
60 accumulate &= test0<S1, S2, Output>(TC.x, TC.y, TC.expect); in do_test()
61 accumulate &= test0<S1, S2, Output>(-TC.x, TC.y, TC.expect); in do_test()
62 accumulate &= test0<S1, S2, Output>(TC.x, -TC.y, TC.expect); in do_test()
63 accumulate &= test0<S1, S2, Output>(-TC.x, -TC.y, TC.expect); in do_test()
64 accumulate &= test0<S2, S1, Output>(TC.x, TC.y, TC.expect); in do_test()
65 accumulate &= test0<S2, S1, Output>(-TC.x, TC.y, TC.expect); in do_test()
66 accumulate &= test0<S2, S1, Output>(TC.x, -TC.y, TC.expect); in do_test()
67 accumulate &= test0<S2, S1, Output>(-TC.x, -TC.y, TC.expect); in do_test()
71 accumulate &= test0<U1, U2, Output>(TC.x, TC.y, TC.expect); in do_test()
[all …]
/external/llvm-project/llvm/test/Transforms/TailCallElim/
Daccum_recursion.ll11 %accumulate = mul i32 %recurse, %x
12 ret i32 %accumulate
19 ; CHECK: %accumulator.tr = phi i32 [ 1, %entry ], [ %accumulate, %then ]
22 ; CHECK: %accumulate = mul i32 %accumulator.tr, %x.tr
37 %accumulate = add i32 %recurse, %x
38 ret i32 %accumulate
45 ; CHECK: %accumulator.tr = phi i32 [ 0, %entry ], [ %accumulate, %endif ]
48 ; CHECK: %accumulate = add i32 %accumulator.tr, %x
65 %accumulate = add nsw i64 %recurse2, %recurse1
66 ret i64 %accumulate
[all …]
/external/webrtc/modules/audio_processing/aec3/
Dsubtractor_output.cc38 y2 = std::accumulate(y.begin(), y.end(), 0.f, sum_of_squares); in ComputeMetrics()
40 std::accumulate(e_refined.begin(), e_refined.end(), 0.f, sum_of_squares); in ComputeMetrics()
42 std::accumulate(e_coarse.begin(), e_coarse.end(), 0.f, sum_of_squares); in ComputeMetrics()
44 std::accumulate(s_refined.begin(), s_refined.end(), 0.f, sum_of_squares); in ComputeMetrics()
46 std::accumulate(s_coarse.begin(), s_coarse.end(), 0.f, sum_of_squares); in ComputeMetrics()
Dsubband_nearend_detector.cc46 std::accumulate(noise.begin() + config_.subband1.low, in Update()
52 std::accumulate(nearend.begin() + config_.subband1.low, in Update()
58 std::accumulate(nearend.begin() + config_.subband2.low, in Update()
Drefined_filter_update_gain_unittest.cc311 EXPECT_GT(std::accumulate(G_a_power.begin(), G_a_power.end(), 0.), in TEST()
312 std::accumulate(G_b_power.begin(), G_b_power.end(), 0.)); in TEST()
314 EXPECT_GT(std::accumulate(G_b_power.begin(), G_b_power.end(), 0.), in TEST()
315 std::accumulate(G_c_power.begin(), G_c_power.end(), 0.)); in TEST()
357 EXPECT_LT(std::accumulate(G_a_power.begin(), G_a_power.end(), 0.), in TEST()
358 std::accumulate(G_b_power.begin(), G_b_power.end(), 0.)); in TEST()
388 EXPECT_LT(std::accumulate(G_a_power.begin(), G_a_power.end(), 0.), in TEST()
389 std::accumulate(G_b_power.begin(), G_b_power.end(), 0.)); in TEST()
/external/flac/src/libFLAC/ia32/
Dlpc_asm-unrolled.nasm85 fldz ; will accumulate autoc[0]
101 fldz ; will accumulate autoc[1]
103 fldz ; will accumulate autoc[0]
128 fldz ; will accumulate autoc[2]
130 fldz ; will accumulate autoc[1]
132 fldz ; will accumulate autoc[0]
168 fldz ; will accumulate autoc[3]
170 fldz ; will accumulate autoc[2]
172 fldz ; will accumulate autoc[1]
174 fldz ; will accumulate autoc[0]
[all …]
/external/llvm-project/libcxx/test/std/numerics/numeric.ops/accumulate/
Daccumulate_op.pass.cpp57 auto res1 = std::accumulate(arr, arr + 100, rvalue_addable()); in test_use_move()
58 auto res2 = std::accumulate(arr, arr + 100, rvalue_addable(), /*predicate=*/rvalue_addable()); in test_use_move()
76 assert(std::accumulate(sa, sa + 3, std::string()) == "abc"); in test_string()
77 assert(std::accumulate(sa, sa + 3, std::string(), std::plus<std::string>()) == "abc"); in test_string()
84 assert(std::accumulate(first, last, init, std::multiplies<T>()) == x); in test()
/external/llvm-project/clang-tools-extra/docs/clang-tidy/checks/
Dbugprone-fold-init-type.rst8 like ``std::accumulate`` that might result in loss of precision.
9 ``std::accumulate`` folds an input range into an initial value using the type of
20 return std::accumulate(std::begin(a), std::end(a), 0);
27 return std::accumulate(std::begin(a), std::end(a), 0);
/external/pdfium/third_party/agg23/
Dagg_conv_adaptor_vcgen.h37 accumulate, enumerator
93 m_status = accumulate; in vertex()
94 case accumulate: in vertex()
128 m_status = accumulate; in vertex()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp53 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test1()
68 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test1()
116 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test2()
131 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test2()
179 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test3()
194 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test3()
242 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test4()
257 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test4()
305 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test5()
320 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test5()
[all …]
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.samp/rand.dist.samp.pconst/
Deval.pass.cpp54 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test1()
69 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test1()
117 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test2()
132 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test2()
180 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test3()
195 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test3()
243 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test4()
258 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test4()
306 double s = std::accumulate(prob.begin(), prob.end(), 0.0); in test5()
321 double mean = std::accumulate(lb, ub, 0.0) / Ni; in test5()
[all …]
/external/tensorflow/tensorflow/core/util/
Dgpu_device_functions.h585 __device__ T GpuAtomicCasHelper(T* ptr, F accumulate) { in GpuAtomicCasHelper() argument
590 old = atomicCAS(ptr, assumed, accumulate(assumed)); in GpuAtomicCasHelper()
599 __device__ float GpuAtomicCasHelper(float* ptr, F accumulate) { in GpuAtomicCasHelper() argument
601 GpuAtomicCasHelper(reinterpret_cast<int32*>(ptr), [accumulate](int32 a) { in GpuAtomicCasHelper()
602 return __float_as_int(accumulate(__int_as_float(a))); in GpuAtomicCasHelper()
606 __device__ double GpuAtomicCasHelper(double* ptr, F accumulate) { in GpuAtomicCasHelper() argument
613 [accumulate](tensorflow::uint64 a) { in GpuAtomicCasHelper()
615 accumulate(*(reinterpret_cast<double*>(&a)))); in GpuAtomicCasHelper()
621 [accumulate](tensorflow::uint64 a) { in GpuAtomicCasHelper()
622 return __double_as_longlong(accumulate(__longlong_as_double(a))); in GpuAtomicCasHelper()
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp47 double mean = std::accumulate(u.begin(), u.end(), in test1()
90 double mean = std::accumulate(u.begin(), u.end(), in test2()
133 double mean = std::accumulate(u.begin(), u.end(), in test3()
176 double mean = std::accumulate(u.begin(), u.end(), in test4()
225 double mean = std::accumulate(u.begin(), u.end(), in test5()
274 double mean = std::accumulate(u.begin(), u.end(), in test6()
317 double mean = std::accumulate(u.begin(), u.end(), in test7()
378 double mean = std::accumulate(u.begin(), u.end(), in test9()
427 double mean = std::accumulate(u.begin(), u.end(), in test10()
476 double mean = std::accumulate(u.begin(), u.end(), in test11()
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.bern/rand.dist.bern.bin/
Deval.pass.cpp48 double mean = std::accumulate(u.begin(), u.end(), in test1()
91 double mean = std::accumulate(u.begin(), u.end(), in test2()
134 double mean = std::accumulate(u.begin(), u.end(), in test3()
177 double mean = std::accumulate(u.begin(), u.end(), in test4()
226 double mean = std::accumulate(u.begin(), u.end(), in test5()
275 double mean = std::accumulate(u.begin(), u.end(), in test6()
318 double mean = std::accumulate(u.begin(), u.end(), in test7()
379 double mean = std::accumulate(u.begin(), u.end(), in test9()
428 double mean = std::accumulate(u.begin(), u.end(), in test10()
477 double mean = std::accumulate(u.begin(), u.end(), in test11()
/external/libvpx/libvpx/vp9/encoder/x86/
Dvp9_error_sse2.asm45 ; accumulate in 64bit
56 ; accumulate horizontally and store in return value
98 ; accumulate in 64bit
105 ; accumulate horizontally and store in return value
/external/angle/src/libANGLE/renderer/vulkan/
DREADME.md42 * `onBufferTransferRead` and `onBufferComputeShaderRead` accumulate `VkBuffer` read barriers.
43 * `onBufferTransferWrite` and `onBufferComputeShaderWrite` accumulate `VkBuffer` write barriers.
45 * `onImageTransferRead` and `onImageComputerShadeRead` accumulate `VkImage` read barriers.
46 * `onImageTransferWrite` and `onImageComputerShadeWrite` accumulate `VkImage` write barriers.
47 * `onImageRenderPassRead` and `onImageRenderPassWrite` accumulate `VkImage` barriers inside a
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp49 double mean = std::accumulate(u.begin(), u.end(), in main()
90 double mean = std::accumulate(u.begin(), u.end(), in main()
131 double mean = std::accumulate(u.begin(), u.end(), in main()
172 double mean = std::accumulate(u.begin(), u.end(), in main()
213 double mean = std::accumulate(u.begin(), u.end(), in main()
254 double mean = std::accumulate(u.begin(), u.end(), in main()
295 double mean = std::accumulate(u.begin(), u.end(), in main()
336 double mean = std::accumulate(u.begin(), u.end(), in main()
377 double mean = std::accumulate(u.begin(), u.end(), in main()
429 double mean = std::accumulate(u.begin(), u.end(), in main()
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.int/
Deval.pass.cpp48 double mean = std::accumulate(u.begin(), u.end(), in main()
89 double mean = std::accumulate(u.begin(), u.end(), in main()
130 double mean = std::accumulate(u.begin(), u.end(), in main()
171 double mean = std::accumulate(u.begin(), u.end(), in main()
212 double mean = std::accumulate(u.begin(), u.end(), in main()
253 double mean = std::accumulate(u.begin(), u.end(), in main()
294 double mean = std::accumulate(u.begin(), u.end(), in main()
335 double mean = std::accumulate(u.begin(), u.end(), in main()
376 double mean = std::accumulate(u.begin(), u.end(), in main()
428 double mean = std::accumulate(u.begin(), u.end(), in main()
/external/webrtc/modules/audio_processing/test/
Dperformance_timer.cc52 std::accumulate(timestamps_us_.begin() + number_of_warmup_samples, in GetDurationAverage()
65 double variance = std::accumulate( in GetDurationStandardDeviation()
/external/llvm-project/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp49 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
89 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
129 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
169 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
209 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
249 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
289 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
329 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
369 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
409 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
[all …]
/external/libcxx/test/std/numerics/rand/rand.dis/rand.dist.uni/rand.dist.uni.real/
Deval.pass.cpp48 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
88 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
128 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
168 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
208 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
248 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
288 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
328 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
368 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
408 D::result_type mean = std::accumulate(u.begin(), u.end(), in main()
[all …]

12345678910>>...24