Lines Matching +full:- +full:a
1 /* ----------------------------------------------------------------------
4 * Description: Mean value of a Q15 vector
9 * Target Processor: Cortex-M and Cortex-A cores
10 * -------------------------------------------------------------------- */
12 * Copyright (C) 2010-2021 ARM Limited or its affiliates. All rights reserved.
14 * SPDX-License-Identifier: Apache-2.0
18 * You may obtain a copy of the License at
20 * www.apache.org/licenses/LICENSE-2.0
41 @brief Mean value of a Q15 vector.
47 The function is implemented using a 32-bit internal accumulator.
48 The input is represented in 1.15 format and is accumulated in a 32-bit
52 Finally, the accumulator is truncated to yield a result of 1.15 format.
65 /* Compute 8 outputs at a time */ in arm_mean_q15()
75 blkCnt--; in arm_mean_q15()
84 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) */ in arm_mean_q15()
88 blkCnt--; in arm_mean_q15()
91 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) / blockSize */ in arm_mean_q15()
110 /* Loop unrolling: Compute 4 outputs at a time */ in arm_mean_q15()
115 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) */ in arm_mean_q15()
125 blkCnt--; in arm_mean_q15()
140 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) */ in arm_mean_q15()
144 blkCnt--; in arm_mean_q15()
147 /* C = (A[0] + A[1] + A[2] + ... + A[blockSize-1]) / blockSize */ in arm_mean_q15()