Lines Matching +full:- +full:a
1 /* ----------------------------------------------------------------------
4 * Description: Sum of the squares of the elements 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 Sum of the squares 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.
67 /* Compute 8 outputs at a time */ in arm_power_q15()
77 blkCnt --; in arm_power_q15()
87 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_power_q15()
89 /* Compute Power and store result in a temporary variable, sum. */ in arm_power_q15()
94 blkCnt--; in arm_power_q15()
115 /* Loop unrolling: Compute 4 outputs at a time */ in arm_power_q15()
120 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_power_q15()
122 /* Compute Power and store result in a temporary variable, sum. */ in arm_power_q15()
144 blkCnt--; in arm_power_q15()
159 /* C = A[0] * A[0] + A[1] * A[1] + ... + A[blockSize-1] * A[blockSize-1] */ in arm_power_q15()
161 /* Compute Power and store result in a temporary variable, sum. */ in arm_power_q15()
166 blkCnt--; in arm_power_q15()