Lines Matching +full:- +full:a
1 /* ----------------------------------------------------------------------
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 Standard deviation of the elements of a Q15 vector.
47 The function is implemented using a 64-bit internal accumulator.
49 Intermediate multiplication yields a 2.30 format, and this
50 result is added without saturation to a 64-bit accumulator in 34.30 format.
54 15 bits, and then saturated to yield a result in 1.15 format.
91 /* Loop unrolling: Compute 4 outputs at a time */ in arm_std_q15()
96 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_std_q15()
97 /* C = A[0] + A[1] + ... + A[blockSize-1] */ in arm_std_q15()
99 /* Compute sum of squares and store result in a temporary variable, sumOfSquares. */ in arm_std_q15()
100 /* Compute sum and store result in a temporary variable, sum. */ in arm_std_q15()
130 blkCnt--; in arm_std_q15()
145 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_std_q15()
146 /* C = A[0] + A[1] + ... + A[blockSize-1] */ in arm_std_q15()
149 /* Compute sum of squares and store result in a temporary variable, sumOfSquares. */ in arm_std_q15()
151 /* Compute sum and store result in a temporary variable, sum. */ in arm_std_q15()
155 blkCnt--; in arm_std_q15()
158 /* Compute Mean of squares and store result in a temporary variable, meanOfSquares. */ in arm_std_q15()
159 meanOfSquares = (q31_t) (sumOfSquares / (q63_t)(blockSize - 1U)); in arm_std_q15()
162 squareOfMean = (q31_t) ((q63_t) sum * sum / (q63_t)(blockSize * (blockSize - 1U))); in arm_std_q15()
166 arm_sqrt_q15(__SSAT((meanOfSquares - squareOfMean) >> 15U, 16U), pResult); in arm_std_q15()