Home
last modified time | relevance | path

Searched refs:state (Results 1 – 25 of 83) sorted by relevance

1234

/cmsis-dsp-3.5.0/Source/FilteringFunctions/
Darm_biquad_cascade_df2T_f16.c67 f16x8_t state; /* State vector */ in arm_biquad_cascade_df2T_f16() local
86 state = *(f16x8_t *) pState; in arm_biquad_cascade_df2T_f16()
87 state = vsetq_lane((float16_t)0.0, state, 2); in arm_biquad_cascade_df2T_f16()
88 state = vsetq_lane((float16_t)0.0, state, 3); in arm_biquad_cascade_df2T_f16()
116 state = vfmaq(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f16()
117 acc0 = vgetq_lane(state, 0); in arm_biquad_cascade_df2T_f16()
118 state = vfmaq(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f16()
119 state = vsetq_lane((float16_t)0.0, state, 3); in arm_biquad_cascade_df2T_f16()
133 state = vfmaq(state, b1Coeffs, Xn1); in arm_biquad_cascade_df2T_f16()
134 acc1 = vgetq_lane(state, 1); in arm_biquad_cascade_df2T_f16()
[all …]
Darm_biquad_cascade_df2T_f32.c67 f32x4_t state; /* State vector */ in arm_biquad_cascade_df2T_f32() local
86 state = *(f32x4_t *) pState; in arm_biquad_cascade_df2T_f32()
87 state = vsetq_lane(0.0f, state, 2); in arm_biquad_cascade_df2T_f32()
88 state = vsetq_lane(0.0f, state, 3); in arm_biquad_cascade_df2T_f32()
114 state = vfmaq(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f32()
115 acc0 = vgetq_lane(state, 0); in arm_biquad_cascade_df2T_f32()
116 state = vfmaq(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f32()
117 state = vsetq_lane(0.0f, state, 3); in arm_biquad_cascade_df2T_f32()
128 state = vfmaq(state, b1Coeffs, Xn1); in arm_biquad_cascade_df2T_f32()
129 acc1 = vgetq_lane(state, 1); in arm_biquad_cascade_df2T_f32()
[all …]
Darm_biquad_cascade_df2T_f64.c163 float64x2_t state; /* State vector*/ in arm_biquad_cascade_df2T_f64() local
179 state = vld1q_f64(pState); in arm_biquad_cascade_df2T_f64()
192 acc0 = b0*Xn0+vgetq_lane_f64(state, 0); in arm_biquad_cascade_df2T_f64()
208 state = vextq_f64(state, zeroV, 1); in arm_biquad_cascade_df2T_f64()
211 state = vfmaq_n_f64(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f64()
212 state = vfmaq_n_f64(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f64()
223 acc0 = b0*Xn0+vgetq_lane_f64(state, 0); in arm_biquad_cascade_df2T_f64()
239 state = vextq_f64(state, zeroV, 1); in arm_biquad_cascade_df2T_f64()
242 state = vfmaq_n_f64(state, b0Coeffs, Xn0); in arm_biquad_cascade_df2T_f64()
243 state = vfmaq_n_f64(state, a0Coeffs, acc0); in arm_biquad_cascade_df2T_f64()
[all …]
/cmsis-dsp-3.5.0/Include/dsp/
Dcontroller_functions.h184 q15_t state[3]; /**< The state array of length 3. */ member
199 q31_t state[3]; /**< The state array of length 3. */ member
214 float32_t state[3]; /**< The state array of length 3. */ member
295 (S->A1 * S->state[0]) + (S->A2 * S->state[1]) + (S->state[2]); in arm_pid_f32()
298 S->state[1] = S->state[0]; in arm_pid_f32()
299 S->state[0] = in; in arm_pid_f32()
300 S->state[2] = out; in arm_pid_f32()
332 acc += (q63_t) S->A1 * S->state[0]; in arm_pid_q31()
335 acc += (q63_t) S->A2 * S->state[1]; in arm_pid_q31()
341 out += S->state[2]; in arm_pid_q31()
[all …]
/cmsis-dsp-3.5.0/Testing/Source/Benchmarks/
DBIQUADF16.cpp41 state.create(4*this->numStages,BIQUADF16::STATE_F16_ID,mgr); in setUp()
46 state.ptr()); in setUp()
54 state.create(2*this->numStages,BIQUADF16::STATE_F16_ID,mgr); in setUp()
64 state.ptr()); in setUp()
74 state.ptr()); in setUp()
84 state.create(4*this->numStages,BIQUADF16::STATE_F16_ID,mgr); in setUp()
89 state.ptr()); in setUp()
DBIQUADF32.cpp41 state.create(4*this->numStages,BIQUADF32::STATE_F32_ID,mgr); in setUp()
46 state.ptr()); in setUp()
54 state.create(2*this->numStages,BIQUADF32::STATE_F32_ID,mgr); in setUp()
64 state.ptr()); in setUp()
74 state.ptr()); in setUp()
84 state.create(4*this->numStages,BIQUADF32::STATE_F32_ID,mgr); in setUp()
89 state.ptr()); in setUp()
DDECIMF32.cpp37 state.create(this->nbSamples + this->nbTaps - 1,DECIMF32::STATE_F32_ID,mgr); in setUp()
43 state.ptr(), in setUp()
53 state.create(this->nbSamples + phase - 1,DECIMF32::STATE_F32_ID,mgr); in setUp()
59 state.ptr(), in setUp()
DFIRF32.cpp36 state.create(this->nbSamples + this->nbSamples + this->nbTaps - 1,FIRF32::STATE_F32_ID,mgr); in setUp()
60 arm_fir_init_f32(&instFir,this->nbTaps,this->pCoefs,state.ptr(),this->nbSamples); in setUp()
66 arm_lms_init_f32(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),0.1,this->nbSamples); in setUp()
78 … arm_lms_norm_init_f32(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),0.1,this->nbSamples); in setUp()
DFIRQ15.cpp35 state.create(this->nbSamples + this->nbTaps - 1,FIRQ15::STATE_Q15_ID,mgr); in setUp()
53 arm_fir_init_q15(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
62 arm_lms_init_q15(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
74 … arm_lms_norm_init_q15(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
DFIRQ31.cpp36state.create(2*ROUND_UP(this->nbSamples,4) + this->nbSamples + this->nbTaps - 1,FIRQ31::STATE_Q31_… in setUp()
55 arm_fir_init_q31(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
65 arm_lms_init_q31(&instLms,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
78 … arm_lms_norm_init_q31(&instLmsNorm,this->nbTaps,coefs.ptr(),state.ptr(),100,this->nbSamples,1); in setUp()
DDECIMQ31.cpp30 state.create(this->nbSamples + this->nbTaps - 1,DECIMQ31::STATE_Q31_ID,mgr); in setUp()
41 state.ptr(), in setUp()
52 state.ptr(), in setUp()
DDECIMQ15.cpp30 state.create(this->nbSamples + this->nbTaps - 1,DECIMQ15::STATE_Q15_ID,mgr); in setUp()
41 state.ptr(), in setUp()
52 state.ptr(), in setUp()
DBinaryQ15.cpp36 state.create(2*this->nbi*this->nbc,BinaryQ15::OUT_Q15_ID,mgr); in setUp()
42 state.create(this->nbi*this->nbc,BinaryQ15::OUT_Q15_ID,mgr); in setUp()
62 this->pState = state.ptr(); in setUp()
DBIQUADF64.cpp33 state.create(2*this->numStages,BIQUADF64::STATE_F64_ID,mgr); in setUp()
38 state.ptr()); in setUp()
DFIRQ7.cpp27 state.create(this->nbSamples + this->nbTaps - 1,FIRQ7::STATE_Q7_ID,mgr); in setUp()
45 arm_fir_init_q7(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
DBinaryQ7.cpp45 state.create(this->nbi*this->nbc,BinaryQ7::OUT_Q7_ID,mgr); in setUp()
65 this->pState = state.ptr(); in setUp()
DFIRF16.cpp27state.create(ROUND_UP(this->nbSamples,8) + this->nbSamples + this->nbTaps - 1,FIRF16::STATE_F16_ID… in setUp()
46 arm_fir_init_f16(&instFir,this->nbTaps,coefs.ptr(),state.ptr(),this->nbSamples); in setUp()
/cmsis-dsp-3.5.0/Testing/Source/Tests/
DDECIMF32.cpp43 state.ptr(), in test_fir_decimate_f32()
99 state.ptr(), in test_fir_interpolate_f32()
142 state.create(16 + 768 - 1,DECIMF32::STATE_F32_ID,mgr); in setUp()
153 state.create(16 + 768 - 1,DECIMF32::STATE_F32_ID,mgr); in setUp()
DDECIMQ15.cpp45 state.ptr(), in test_fir_decimate_q15()
98 state.ptr(), in test_fir_interpolate_q15()
141 state.create(16 + 768 - 1,DECIMQ15::STATE_Q15_ID,mgr); in setUp()
152 state.create(16 + 768 - 1,DECIMQ15::STATE_Q15_ID,mgr); in setUp()
DDECIMQ31.cpp46 state.ptr(), in test_fir_decimate_q31()
101 state.ptr(), in test_fir_interpolate_q31()
144 state.create(16 + 768 - 1,DECIMQ31::STATE_Q31_ID,mgr); in setUp()
155 state.create(16 + 768 - 1,DECIMQ31::STATE_Q31_ID,mgr); in setUp()
DBIQUADF16.cpp20 float16_t *statep = state.ptr(); in test_biquad_cascade_df1_ref()
94 float16_t *statep = state.ptr(); in test_biquad_cascade_df2T_ref()
157 float16_t *statep = state.ptr(); in test_biquad_cascade_df1_rand()
233 float16_t *statep = state.ptr(); in test_biquad_cascade_df2T_rand()
305 float16_t *statep = state.ptr(); in test_biquad_cascade_stereo_df2T_rand()
434 state.create(128,BIQUADF16::STATE_F16_ID,mgr); in setUp()
DBIQUADF32.cpp20 float32_t *statep = state.ptr(); in test_biquad_cascade_df1_ref()
93 float32_t *statep = state.ptr(); in test_biquad_cascade_df2T_ref()
167 float32_t *statep = state.ptr(); in test_biquad_cascade_df1_rand()
244 float32_t *statep = state.ptr(); in test_biquad_cascade_df2T_rand()
331 float32_t *statep = state.ptr(); in test_biquad_cascade_stereo_df2T_rand()
460 state.create(128,BIQUADF32::STATE_F32_ID,mgr); in setUp()
DBIQUADF64.cpp19 float64_t *statep = state.ptr(); in test_biquad_cascade_df2T_ref()
83 float64_t *statep = state.ptr(); in test_biquad_cascade_df2T_rand()
178 state.create(128,BIQUADF64::STATE_F64_ID,mgr); in setUp()
/cmsis-dsp-3.5.0/Testing/
DprocessResult.py370 state = NORMAL
401 if state == NORMAL:
447 state = INTEST
458 elif state == INTEST:
501 state = ERRORDESC
510 state = INTEST
512 state = NORMAL
513 elif state == ERRORDESC:
521 state = TESTPARAM
524 state = INTEST
/cmsis-dsp-3.5.0/PythonWrapper/examples/
Dtestdsp.py311 state=np.zeros(2*nb) variable
312 resultI = dsp.arm_dct4_q31(dct4q31,state,signalQ31)
326 state=np.zeros(2*nb) variable
327 resultI = dsp.arm_dct4_q15(dct4q15,state,signalQ15)
346 state=np.zeros(numStages*4) variable
348 dsp.arm_biquad_cascade_df1_init_f32(biquadf32,1,coefs,state)

1234