Lines Matching +full:- +full:g

1 /* ----------------------------------------------------------------------
8 * Target Processor: Cortex-M and Cortex-A cores
9 * -------------------------------------------------------------------- */
11 * Copyright (C) 2010-2022 ARM Limited or its affiliates. All rights reserved.
13 * SPDX-License-Identifier: Apache-2.0
19 * www.apache.org/licenses/LICENSE-2.0
41 // Buffer to read samples into, each sample is 16-bits
63 q15_t *b=this->getReadBuffer(); in run()
65 if (b[0]==-1) in run()
98 q15_t *b=this->getWriteBuffer(); in run()
119 if ((samplesRead-outputSize) > 0) in run()
121 memmove(sampleBuffer,sampleBuffer+outputSize,sizeof(q15_t)*(samplesRead-outputSize)); in run()
123 samplesRead = samplesRead - outputSize; in run()
149 int stateLength = numTaps + blockSize - 1; in FIR()
158 q15_t *a=this->getReadBuffer(); in run()
159 q15_t *b=this->getWriteBuffer(); in run()
161 int stateLength = NUMTAPS + blockSize - 1; in run()
163 arm_status status=arm_fir_init_q15(&(this->firq15),NUMTAPS,fir_coefs,state,blockSize); in run()
165 arm_fir_q15(&(this->firq15),a,b,blockSize); in run()
174 /* Not available in the older CMSIS-DSP version provided with Arduino.
208 shiftForNormalizing= 17 - __CLZ(temp); in arm_divide_q15()
217 temp = -temp; in arm_divide_q15()
232 …// Negate can saturate so we use CMSIS-DSP function which is working on array (and we have a scala… in dsp_zcr_q15()
237 for(int i=0;i<blockSize-1;i++) in dsp_zcr_q15()
240 int g = w[i+1]; in dsp_zcr_q15() local
241 if ((((f>0) && (g<0)) || ((f<0) && (g>0))) && g>f) in dsp_zcr_q15()
255 arm_status status=arm_divide_q15(k,blockSize-1,&quotient,&shift); in dsp_zcr_q15()
282 q15_t *a=this->getReadBuffer(); in run()
283 q15_t *b=this->getWriteBuffer(); in run()
285 arm_mult_q15(a,this->mWindow,a,inputSize); in run()
319 q15_t *a=this->getReadBuffer(); in run()
320 q15_t *b=this->getWriteBuffer(); in run()
323 arm_dot_prod_q15(this->mCoef_q15,a,inputSize,&res); in run()
326 arm_shift_q15(&(this->mIntercept_q15),this->mIntercept_shift-this->mCoef_shift,&scaled,1); in run()
335 b[0]=-1; in run()