Home
last modified time | relevance | path

Searched refs:temp (Results 1 – 25 of 58) sorted by relevance

123

/cmsis-dsp-latest/Source/ControllerFunctions/
Darm_sin_cos_q31.c59 q63_t temp; in arm_sin_cos_q31() local
77 temp = Dn * ((q63_t)d1 + d2); in arm_sin_cos_q31()
78 temp = temp - ((q63_t)Df << 32); in arm_sin_cos_q31()
79 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31()
80 temp = temp + ((3 * (q63_t)Df << 31) - (d2 + ((q63_t)d1 << 1)) * Dn); in arm_sin_cos_q31()
81 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31()
82 temp = temp + (q63_t)d1 * Dn; in arm_sin_cos_q31()
83 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31()
86 *pCosVal = clip_q63_to_q31((temp >> 31) + (q63_t)f1); in arm_sin_cos_q31()
95 temp = Dn * ((q63_t)d1 + d2); in arm_sin_cos_q31()
[all …]
Darm_sin_cos_f32.c53 float32_t temp, findex; in arm_sin_cos_f32() local
83 temp = Dn * (d1 + d2) - 2 * Df; in arm_sin_cos_f32()
84 temp = fract * temp + (3 * Df - (d2 + 2 * d1) * Dn); in arm_sin_cos_f32()
85 temp = fract * temp + d1 * Dn; in arm_sin_cos_f32()
88 *pCosVal = fract * temp + f1; in arm_sin_cos_f32()
98 temp = Dn * (d1 + d2) - 2 * Df; in arm_sin_cos_f32()
99 temp = fract * temp + (3 * Df - (d2 + 2 * d1) * Dn); in arm_sin_cos_f32()
100 temp = fract * temp + d1 * Dn; in arm_sin_cos_f32()
103 *pSinVal = fract * temp + f1; in arm_sin_cos_f32()
Darm_pid_init_q31.c65 q31_t temp; /* to store the sum */ in arm_pid_init_q31()
68 temp = clip_q63_to_q31((q63_t) S->Kp + S->Ki); in arm_pid_init_q31()
69 S->A0 = clip_q63_to_q31((q63_t) temp + S->Kd); in arm_pid_init_q31()
72 temp = clip_q63_to_q31((q63_t) S->Kd + S->Kd); in arm_pid_init_q31()
73 S->A1 = -clip_q63_to_q31((q63_t) temp + S->Kp); in arm_pid_init_q31()
Darm_pid_init_q15.c70 q31_t temp; /* to store the sum */ in arm_pid_init_q15()
73 temp = S->Kp + S->Ki + S->Kd; in arm_pid_init_q15()
74 S->A0 = (q15_t) __SSAT(temp, 16); in arm_pid_init_q15()
77 temp = -(S->Kd + S->Kd + S->Kp); in arm_pid_init_q15()
78 S->A1 = (q15_t) __SSAT(temp, 16); in arm_pid_init_q15()
/cmsis-dsp-latest/Source/FastMathFunctions/
Darm_sqrt_q15.c56 q15_t number, var1, signBits1,temp; in arm_sqrt_q15() local
80 temp = ((q31_t) var1 * var1) >> 12; in arm_sqrt_q15()
81 temp = ((q31_t) number * temp) >> 15; in arm_sqrt_q15()
82 temp = 0x3000 - temp; in arm_sqrt_q15()
83 var1 = ((q31_t) var1 * temp) >> 13; in arm_sqrt_q15()
85 temp = ((q31_t) var1 * var1) >> 12; in arm_sqrt_q15()
86 temp = ((q31_t) number * temp) >> 15; in arm_sqrt_q15()
87 temp = 0x3000 - temp; in arm_sqrt_q15()
88 var1 = ((q31_t) var1 * temp) >> 13; in arm_sqrt_q15()
90 temp = ((q31_t) var1 * var1) >> 12; in arm_sqrt_q15()
[all …]
Darm_sqrt_q31.c56 q31_t number, var1, signBits1 ,temp; in arm_sqrt_q31() local
82 temp = ((q63_t) var1 * var1) >> 28; in arm_sqrt_q31()
83 temp = ((q63_t) number * temp) >> 31; in arm_sqrt_q31()
84 temp = 0x30000000 - temp; in arm_sqrt_q31()
85 var1 = ((q63_t) var1 * temp) >> 29; in arm_sqrt_q31()
89 temp = ((q63_t) var1 * var1) >> 28; in arm_sqrt_q31()
90 temp = ((q63_t) number * temp) >> 31; in arm_sqrt_q31()
91 temp = 0x30000000 - temp; in arm_sqrt_q31()
92 var1 = ((q63_t) var1 * temp) >> 29; in arm_sqrt_q31()
95 temp = ((q63_t) var1 * var1) >> 28; in arm_sqrt_q31()
[all …]
Darm_divide_q15.c66 q31_t temp; in arm_divide_q15() local
89 temp = ((q31_t)numerator << 15) / ((q31_t)denominator); in arm_divide_q15()
91 shiftForNormalizing= 17 - __CLZ(temp); in arm_divide_q15()
95 temp = temp >> shiftForNormalizing; in arm_divide_q15()
100 temp = -temp; in arm_divide_q15()
103 *quotient=temp; in arm_divide_q15()
Darm_divide_q31.c61 q63_t temp; in arm_divide_q31() local
84 temp = ((q63_t)numerator << 31) / ((q63_t)denominator); in arm_divide_q31()
86 shiftForNormalizing= 32 - __CLZ(temp >> 31); in arm_divide_q31()
90 temp = temp >> shiftForNormalizing; in arm_divide_q31()
95 temp = -temp; in arm_divide_q31()
98 *quotient=(q31_t)temp; in arm_divide_q31()
/cmsis-dsp-latest/Source/InterpolationFunctions/
Darm_spline_interp_f32.c176 float32x4_t temp = {0.0f, 0.0f, 0.0f, 0.0f}; in arm_spline_f32() local
200 temp = diff; in arm_spline_f32()
205 yv = vmlaq_f32(yv, biv, temp); in arm_spline_f32()
207 temp = vmulq_f32(temp, diff); in arm_spline_f32()
208 yv = vmlaq_f32(yv, civ, temp); in arm_spline_f32()
210 temp = vmulq_f32(temp, diff); in arm_spline_f32()
211 yv = vmlaq_f32(yv, div, temp); in arm_spline_f32()
244 temp = diff; in arm_spline_f32()
249 yv = vmlaq_f32(yv, biv, temp); in arm_spline_f32()
251 temp = vmulq_f32(temp, diff); in arm_spline_f32()
[all …]
/cmsis-dsp-latest/Source/SupportFunctions/
Darm_bitonic_sort_f32.c40 float32_t temp; in arm_bitonic_sort_core_f32() local
51 temp=*leftPtr; in arm_bitonic_sort_core_f32()
53 *rightPtr=temp; in arm_bitonic_sort_core_f32()
73 temp=*leftPtr; in arm_bitonic_sort_core_f32()
75 *rightPtr=temp; in arm_bitonic_sort_core_f32()
304 float32x4_t temp; in arm_bitonic_merge_32_f32() local
306 temp = ab2.val[0]; in arm_bitonic_merge_32_f32()
308 cd1.val[0] = temp; in arm_bitonic_merge_32_f32()
309 temp = ab2.val[1]; in arm_bitonic_merge_32_f32()
311 cd1.val[1] = temp; in arm_bitonic_merge_32_f32()
[all …]
Darm_heap_sort_f32.c40 float32_t temp; in arm_heapify() local
50 temp = pSrc[i]; in arm_heapify()
52 pSrc[k]=temp; in arm_heapify()
92 float32_t temp; in arm_heap_sort_f32() local
109 temp = pA[i]; in arm_heap_sort_f32()
111 pA[0] = temp; in arm_heap_sort_f32()
/cmsis-dsp-latest/Source/DistanceFunctions/
Darm_dtw_path_f32.c71 float32_t temp; in arm_dtw_path_f32() local
83 temp = E(pDTW,q-1,t); in arm_dtw_path_f32()
84 if (temp<current) in arm_dtw_path_f32()
86 current=temp; in arm_dtw_path_f32()
93 temp = E(pDTW,q,t-1); in arm_dtw_path_f32()
94 if (temp<current) in arm_dtw_path_f32()
96 current=temp; in arm_dtw_path_f32()
103 temp = E(pDTW,q-1,t-1); in arm_dtw_path_f32()
104 if (temp<current) in arm_dtw_path_f32()
106 current=temp; in arm_dtw_path_f32()
/cmsis-dsp-latest/Source/QuaternionMathFunctions/
Darm_quaternion_normalize_f32.c85 float32_t temp; in arm_quaternion_normalize_f32() local
90 temp = ARM_SQ(pInputQuaternions[4 * i + 0]) + in arm_quaternion_normalize_f32()
94 temp = sqrtf(temp); in arm_quaternion_normalize_f32()
96 pNormalizedQuaternions[4 * i + 0] = pInputQuaternions[4 * i + 0] / temp; in arm_quaternion_normalize_f32()
97 pNormalizedQuaternions[4 * i + 1] = pInputQuaternions[4 * i + 1] / temp; in arm_quaternion_normalize_f32()
98 pNormalizedQuaternions[4 * i + 2] = pInputQuaternions[4 * i + 2] / temp; in arm_quaternion_normalize_f32()
99 pNormalizedQuaternions[4 * i + 3] = pInputQuaternions[4 * i + 3] / temp; in arm_quaternion_normalize_f32()
Darm_quaternion_inverse_f32.c92 float32_t temp; in arm_quaternion_inverse_f32() local
98 temp = ARM_SQ(pInputQuaternions[4 * i + 0]) + in arm_quaternion_inverse_f32()
103 pInverseQuaternions[4 * i + 0] = pInputQuaternions[4 * i + 0] / temp; in arm_quaternion_inverse_f32()
104 pInverseQuaternions[4 * i + 1] = -pInputQuaternions[4 * i + 1] / temp; in arm_quaternion_inverse_f32()
105 pInverseQuaternions[4 * i + 2] = -pInputQuaternions[4 * i + 2] / temp; in arm_quaternion_inverse_f32()
106 pInverseQuaternions[4 * i + 3] = -pInputQuaternions[4 * i + 3] / temp; in arm_quaternion_inverse_f32()
/cmsis-dsp-latest/Source/MatrixFunctions/
Darm_mat_mult_f64.c90 float64x2_t acc0,acc1,acc2,acc3,acc4,acc5,acc6,acc7,temp; in arm_mat_mult_f64() local
196 temp = vsetq_lane_f64(*pIn2,temp,0); in arm_mat_mult_f64()
198 temp = vsetq_lane_f64(*pIn2,temp,1); in arm_mat_mult_f64()
202 acc0 = vmlaq_f64(acc0,a0V,temp); in arm_mat_mult_f64()
203 acc1 = vmlaq_f64(acc1,a1V,temp); in arm_mat_mult_f64()
204 acc2 = vmlaq_f64(acc2,a2V,temp); in arm_mat_mult_f64()
205 acc3 = vmlaq_f64(acc3,a3V,temp); in arm_mat_mult_f64()
206 acc4 = vmlaq_f64(acc4,a4V,temp); in arm_mat_mult_f64()
207 acc5 = vmlaq_f64(acc5,a5V,temp); in arm_mat_mult_f64()
208 acc6 = vmlaq_f64(acc6,a6V,temp); in arm_mat_mult_f64()
[all …]
Darm_mat_mult_f32.c568 float32x4_t acc0,acc1,acc2,acc3,acc4,acc5,acc6,acc7,temp; in arm_mat_mult_f32() local
675 temp = vsetq_lane_f32(*pIn2,temp,0); in arm_mat_mult_f32()
677 temp = vsetq_lane_f32(*pIn2,temp,1); in arm_mat_mult_f32()
679 temp = vsetq_lane_f32(*pIn2,temp,2); in arm_mat_mult_f32()
681 temp = vsetq_lane_f32(*pIn2,temp,3); in arm_mat_mult_f32()
684 acc0 = vmlaq_f32(acc0,a0V,temp); in arm_mat_mult_f32()
685 acc1 = vmlaq_f32(acc1,a1V,temp); in arm_mat_mult_f32()
686 acc2 = vmlaq_f32(acc2,a2V,temp); in arm_mat_mult_f32()
687 acc3 = vmlaq_f32(acc3,a3V,temp); in arm_mat_mult_f32()
688 acc4 = vmlaq_f32(acc4,a4V,temp); in arm_mat_mult_f32()
[all …]
/cmsis-dsp-latest/Testing/Source/Tests/
DFullyConnected.cpp29 q15_t *tempp=temp.ptr(); in test_fully_connected_tflite_s8()
77 temp.create(input.nbSamples(),FullyConnected::TEMP_S16_ID,mgr); in setUp()
99 temp.create(input.nbSamples(),FullyConnected::TEMP_S16_ID,mgr); in setUp()
121 temp.create(input.nbSamples(),FullyConnected::TEMP_S16_ID,mgr); in setUp()
145 temp.create(input.nbSamples(),FullyConnected::TEMP_S16_ID,mgr); in setUp()
169 temp.create(input.nbSamples(),FullyConnected::TEMP_S16_ID,mgr); in setUp()
197 temp.create(colDim,FullyConnected::TEMP_S16_ID,mgr); in setUp()
223 temp.create(colDim,FullyConnected::TEMP_S16_ID,mgr); in setUp()
249 temp.create(colDim,FullyConnected::TEMP_S16_ID,mgr); in setUp()
274 temp.create(colDim,FullyConnected::TEMP_S16_ID,mgr); in setUp()
[all …]
/cmsis-dsp-latest/Source/SVMFunctions/
Darm_svm_rbf_predict_f32.c335 float32x4_t temp; in arm_svm_rbf_predict_f32() local
385 temp = vsubq_f32(vec1, vec2a); in arm_svm_rbf_predict_f32()
386 accuma = vmlaq_f32(accuma, temp, temp); in arm_svm_rbf_predict_f32()
388 temp = vsubq_f32(vec1, vec2b); in arm_svm_rbf_predict_f32()
389 accumb = vmlaq_f32(accumb, temp, temp); in arm_svm_rbf_predict_f32()
391 temp = vsubq_f32(vec1, vec2c); in arm_svm_rbf_predict_f32()
392 accumc = vmlaq_f32(accumc, temp, temp); in arm_svm_rbf_predict_f32()
394 temp = vsubq_f32(vec1, vec2d); in arm_svm_rbf_predict_f32()
395 accumd = vmlaq_f32(accumd, temp, temp); in arm_svm_rbf_predict_f32()
467 temp = vsubq_f32(vec1,vec2); in arm_svm_rbf_predict_f32()
[all …]
/cmsis-dsp-latest/Source/FilteringFunctions/
Darm_fir_decimate_f32.c399 float32x2_t temp; in arm_fir_decimate_f32() local
468 temp = vpadd_f32(vget_low_f32(acc0v),vget_high_f32(acc0v)); in arm_fir_decimate_f32()
469 accv = vsetq_lane_f32(vget_lane_f32(temp, 0) + vget_lane_f32(temp, 1),accv,0); in arm_fir_decimate_f32()
471 temp = vpadd_f32(vget_low_f32(acc1v),vget_high_f32(acc1v)); in arm_fir_decimate_f32()
472 accv = vsetq_lane_f32(vget_lane_f32(temp, 0) + vget_lane_f32(temp, 1),accv,1); in arm_fir_decimate_f32()
474 temp = vpadd_f32(vget_low_f32(acc2v),vget_high_f32(acc2v)); in arm_fir_decimate_f32()
475 accv = vsetq_lane_f32(vget_lane_f32(temp, 0) + vget_lane_f32(temp, 1),accv,2); in arm_fir_decimate_f32()
477 temp = vpadd_f32(vget_low_f32(acc3v),vget_high_f32(acc3v)); in arm_fir_decimate_f32()
478 accv = vsetq_lane_f32(vget_lane_f32(temp, 0) + vget_lane_f32(temp, 1),accv,3); in arm_fir_decimate_f32()
555 temp = vpadd_f32(vget_low_f32(sum0v),vget_high_f32(sum0v)); in arm_fir_decimate_f32()
[all …]
/cmsis-dsp-latest/Examples/ARM/arm_bayes_example/
Darm_bayes_example_f32.c92 float32_t temp[NB_OF_CLASSES]; in main() local
106 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
118 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
130 index = arm_gaussian_naive_bayes_predict_f32(&S, in, result,temp); in main()
/cmsis-dsp-latest/Examples/ARM/arm_signal_converge_example/
Dmath_helper.c67 int temp; in arm_snr_f32() local
74 temp = *test; in arm_snr_f32()
76 if (temp == 0x7FC00000) in arm_snr_f32()
83 temp = *test; in arm_snr_f32()
85 if (temp == 0x7FC00000) in arm_snr_f32()
95 temp = *test; in arm_snr_f32()
97 if (temp == 0x7FC00000) in arm_snr_f32()
/cmsis-dsp-latest/Examples/ARM/arm_convolution_example/
Dmath_helper.c67 int temp; in arm_snr_f32() local
74 temp = *test; in arm_snr_f32()
76 if (temp == 0x7FC00000) in arm_snr_f32()
83 temp = *test; in arm_snr_f32()
85 if (temp == 0x7FC00000) in arm_snr_f32()
95 temp = *test; in arm_snr_f32()
97 if (temp == 0x7FC00000) in arm_snr_f32()
/cmsis-dsp-latest/Examples/ARM/arm_matrix_example/
Dmath_helper.c67 int temp; in arm_snr_f32() local
74 temp = *test; in arm_snr_f32()
76 if (temp == 0x7FC00000) in arm_snr_f32()
83 temp = *test; in arm_snr_f32()
85 if (temp == 0x7FC00000) in arm_snr_f32()
95 temp = *test; in arm_snr_f32()
97 if (temp == 0x7FC00000) in arm_snr_f32()
/cmsis-dsp-latest/Examples/ARM/arm_fir_example/
Dmath_helper.c67 int temp; in arm_snr_f32() local
74 temp = *test; in arm_snr_f32()
76 if (temp == 0x7FC00000) in arm_snr_f32()
83 temp = *test; in arm_snr_f32()
85 if (temp == 0x7FC00000) in arm_snr_f32()
95 temp = *test; in arm_snr_f32()
97 if (temp == 0x7FC00000) in arm_snr_f32()
/cmsis-dsp-latest/Examples/ARM/arm_graphic_equalizer_example/
Dmath_helper.c67 int temp; in arm_snr_f32() local
74 temp = *test; in arm_snr_f32()
76 if (temp == 0x7FC00000) in arm_snr_f32()
83 temp = *test; in arm_snr_f32()
85 if (temp == 0x7FC00000) in arm_snr_f32()
95 temp = *test; in arm_snr_f32()
97 if (temp == 0x7FC00000) in arm_snr_f32()

123