Home
last modified time | relevance | path

Searched refs:res (Results 1 – 25 of 55) sorted by relevance

123

/cmsis-dsp-3.7.0-3.6.0/PythonWrapper/examples/
Dtestdistance.py11 res=dsp.arm_braycurtis_distance_f32(a,b) variable
13 print(res)
14 assert_allclose(ref,res,1e-6)
19 res=dsp.arm_canberra_distance_f32(a,b) variable
21 print(res)
22 assert_allclose(ref,res,1e-6)
26 res=dsp.arm_chebyshev_distance_f32(a,b) variable
28 print(res)
29 assert_allclose(ref,res,1e-6)
31 res=dsp.arm_chebyshev_distance_f64(a,b) variable
[all …]
Dtestdsp5.py117 res=dsp.arm_weighted_sum_f32(s,w) variable
118 print(res)
120 assert_allclose(ref,res,2e-5)
128 res=dsp.arm_entropy_f32(s) variable
129 print(res)
130 assert_allclose(ref,res,1e-6)
132 res=dsp.arm_entropy_f64(s) variable
133 print(res)
134 assert_allclose(ref,res,1e-10)
145 res=dsp.arm_kullback_leibler_f32(sa,sb) variable
[all …]
Ddebug.py70 res = r[0::2] + 1j * r[1::2]
71 conjPart = res[nb:nb//2:-1].conj()
72 refPart = res[1:nb//2]
77 res = resultF[0::2] + 1j * resultF[1::2] variable
78 print(res)
80 print(res[0:nb//2+1])
81 print(res[0:nb//2+1].shape)
/cmsis-dsp-3.7.0-3.6.0/Source/ComplexMathFunctions/
Darm_cmplx_mag_q15.c75 q31_t res; in arm_cmplx_mag_q15() local
133 arm_sqrt_q31((uint32_t)acc0 >> 1 , &res); in arm_cmplx_mag_q15()
134 *pDst++ = res >> 16; in arm_cmplx_mag_q15()
148 q31_t res; /* temporary result */ in arm_cmplx_mag_q15() local
172 arm_sqrt_q31((uint32_t)acc0 >> 1 , &res); in arm_cmplx_mag_q15()
173 *pDst++ = res >> 16; in arm_cmplx_mag_q15()
177 arm_sqrt_q31((uint32_t)acc0 >> 1 , &res); in arm_cmplx_mag_q15()
178 *pDst++ = res >> 16; in arm_cmplx_mag_q15()
182 arm_sqrt_q31((uint32_t)acc0 >> 1 , &res); in arm_cmplx_mag_q15()
183 *pDst++ = res >> 16; in arm_cmplx_mag_q15()
[all …]
/cmsis-dsp-3.7.0-3.6.0/Source/FastMathFunctions/
Darm_atan2_q15.c61 q31_t res=(q31_t)atan2_coefs_q15[ATAN2_NB_COEFS_Q15-1]; in arm_atan_limited_q15() local
65 res = ((q31_t) x * res) >> 15U; in arm_atan_limited_q15()
66 res = res + ((q31_t) atan2_coefs_q15[ATAN2_NB_COEFS_Q15-1-i]) ; in arm_atan_limited_q15()
69 res = __SSAT(res>>2,16); in arm_atan_limited_q15()
72 return(res); in arm_atan_limited_q15()
79 q15_t res=0; in arm_atan_q15() local
122 res = PIHALFQ13 - arm_atan_limited_q15(ratio); in arm_atan_q15()
143 res = arm_atan_limited_q15(ratio); in arm_atan_q15()
152 res = __QSUB16(0, res); in arm_atan_q15()
154 res = (res == (q15_t) 0x8000) ? (q15_t) 0x7fff : -res; in arm_atan_q15()
[all …]
Darm_atan2_q31.c64 q63_t res=(q63_t)atan2_coefs_q31[ATAN2_NB_COEFS_Q31-1]; in arm_atan_limited_q31() local
68 res = ((q63_t) x * res) >> 31U; in arm_atan_limited_q31()
69 res = res + ((q63_t) atan2_coefs_q31[ATAN2_NB_COEFS_Q31-1-i]) ; in arm_atan_limited_q31()
72 return(clip_q63_to_q31(res>>2)); in arm_atan_limited_q31()
79 q31_t res=0; in arm_atan_q31() local
122 res = PIHALF_Q29 - arm_atan_limited_q31(ratio); in arm_atan_q31()
143 res = arm_atan_limited_q31(ratio); in arm_atan_q31()
152 res = __QSUB(0, res); in arm_atan_q31()
154 res = (res == INT32_MIN) ? INT32_MAX : -res; in arm_atan_q31()
158 return(res); in arm_atan_q31()
Darm_vlog_f16.c93 float16_t res = lut[NB_DEG_LOGF16-1]; in logf16_scalar() local
96 res = (_Float16)lut[j] + (_Float16)v * (_Float16)res; in logf16_scalar()
99 res = (_Float16)res + 0.693147f16 * (_Float16)vecExpUnBiased; in logf16_scalar()
102 return(res); in logf16_scalar()
124 float16x8_t tmp,v,res; in vlogq_lut_f16() local
135 res = vldrhq_gather_shifted_offset_f16(lut_logf16,(uint16x8_t)offset); in vlogq_lut_f16()
141 res = vfmaq_f16(lutV,v,res); in vlogq_lut_f16()
146 res = vfmaq_n_f16(res,vcvtq_f16_s16(vecExpUnBiased),0.693147f16); in vlogq_lut_f16()
149 return(res); in vlogq_lut_f16()
Darm_atan2_f32.c57 float32_t res=atan2_coefs_f32[ATAN2_NB_COEFS_F32-1]; in arm_atan_limited_f32() local
61 res = x*res + atan2_coefs_f32[ATAN2_NB_COEFS_F32-1-i]; in arm_atan_limited_f32()
65 return(res); in arm_atan_limited_f32()
71 float32_t res=0.0f; in arm_atan_f32() local
82 res = PIHALFF32 - arm_atan_limited_f32(x); in arm_atan_f32()
86 res += arm_atan_limited_f32(x); in arm_atan_f32()
92 res = -res; in arm_atan_f32()
95 return(res); in arm_atan_f32()
Darm_atan2_f16.c56 float16_t res=atan2_coefs_f16[ATAN2_NB_COEFS_F16-1]; in arm_atan_limited_f16() local
60 res = (_Float16)x*(_Float16)res + (_Float16)atan2_coefs_f16[ATAN2_NB_COEFS_F16-1-i]; in arm_atan_limited_f16()
64 return(res); in arm_atan_limited_f16()
70 float16_t res=0.0f16; in arm_atan_f16() local
81 res = (_Float16)PI16HALF - (_Float16)arm_atan_limited_f16(x); in arm_atan_f16()
85 res += (_Float16)arm_atan_limited_f16(x); in arm_atan_f16()
91 res = -(_Float16)res; in arm_atan_f16()
94 return(res); in arm_atan_f16()
/cmsis-dsp-3.7.0-3.6.0/Testing/cmsis_build/
Drunall.py142 res=run(avh,"-f",config,app)
143 return(res)
260 res=run("csolution","convert","-s",s) variable
261 if res.error:
264 print(res.msg,file=f)
280res=run(sys.executable,"../processTests.py","-gen","..","-p","../Patterns","-d","../Parameters","-… variable
281 if res.error:
284 print(res.msg,file=f)
294 res=run("cbuild",buildFile) variable
296 res=run("cbuild","-r",buildFile)
[all …]
/cmsis-dsp-3.7.0-3.6.0/Source/TransformFunctions/
Darm_rfft_fast_f32.c47 float32x4x2_t tmp1, tmp2, res; in stage_rfft_f32() local
125 res.val[0] = vmulq(tw.val[0], tmp2.val[0]); in stage_rfft_f32()
126 res.val[0] = vfmsq(res.val[0],tw.val[1], tmp2.val[1]); in stage_rfft_f32()
128 res.val[1] = vmulq(tw.val[0], tmp2.val[1]); in stage_rfft_f32()
129 res.val[1] = vfmaq(res.val[1], tw.val[1], tmp2.val[0]); in stage_rfft_f32()
131 res.val[0] = vaddq_f32(res.val[0],tmp1.val[0] ); in stage_rfft_f32()
132 res.val[1] = vaddq_f32(res.val[1],tmp1.val[1] ); in stage_rfft_f32()
134 res.val[0] = vmulq_n_f32(res.val[0], 0.5f); in stage_rfft_f32()
135 res.val[1] = vmulq_n_f32(res.val[1], 0.5f); in stage_rfft_f32()
138 vst2q_f32(pOut, res); in stage_rfft_f32()
[all …]
Darm_rfft_fast_f16.c52 float16x8x2_t tmp1, tmp2, res; in stage_rfft_f16() local
130 res.val[0] = vmulq(tw.val[0], tmp2.val[0]); in stage_rfft_f16()
131 res.val[0] = vfmsq(res.val[0],tw.val[1], tmp2.val[1]); in stage_rfft_f16()
133 res.val[1] = vmulq(tw.val[0], tmp2.val[1]); in stage_rfft_f16()
134 res.val[1] = vfmaq(res.val[1], tw.val[1], tmp2.val[0]); in stage_rfft_f16()
136 res.val[0] = vaddq_f16(res.val[0],tmp1.val[0] ); in stage_rfft_f16()
137 res.val[1] = vaddq_f16(res.val[1],tmp1.val[1] ); in stage_rfft_f16()
139 res.val[0] = vmulq_n_f16(res.val[0], 0.5f); in stage_rfft_f16()
140 res.val[1] = vmulq_n_f16(res.val[1], 0.5f); in stage_rfft_f16()
143 vst2q_f16(pOut, res); in stage_rfft_f16()
[all …]
/cmsis-dsp-3.7.0-3.6.0/Source/FilteringFunctions/
Darm_conv_f32.c348 float32x4_t res = vdupq_n_f32(0) ; in arm_conv_f32() local
363 res = vdupq_n_f32(0) ; in arm_conv_f32()
379 res = vmlaq_f32(res,vec1, vec2); in arm_conv_f32()
389 accum = vpadd_f32(vget_low_f32(res), vget_high_f32(res)); in arm_conv_f32()
483 float32x4_t res = vdupq_n_f32(0) ; in arm_conv_f32() local
503 res = vdupq_n_f32(0) ; in arm_conv_f32()
514 res = vmlaq_n_f32(res,x,c[3]); in arm_conv_f32()
518 res = vmlaq_n_f32(res,x,c[2]); in arm_conv_f32()
522 res = vmlaq_n_f32(res,x,c[1]); in arm_conv_f32()
526 res = vmlaq_n_f32(res,x,c[0]); in arm_conv_f32()
[all …]
Darm_correlate_f32.c444 float32x4_t res = vdupq_n_f32(0) ; in arm_correlate_f32() local
452 res = vmlaq_f32(res,x, y); in arm_correlate_f32()
461 accum = vpadd_f32(vget_low_f32(res), vget_high_f32(res)); in arm_correlate_f32()
561 float32x4_t res = vdupq_n_f32(0) ; in arm_correlate_f32() local
576 res = vdupq_n_f32(0) ; in arm_correlate_f32()
588 res = vmlaq_n_f32(res,x,c[0]); in arm_correlate_f32()
592 res = vmlaq_n_f32(res,x,c[1]); in arm_correlate_f32()
596 res = vmlaq_n_f32(res,x,c[2]); in arm_correlate_f32()
600 res = vmlaq_n_f32(res,x,c[3]); in arm_correlate_f32()
615 res = vmlaq_n_f32(res,x1v,c0); in arm_correlate_f32()
[all …]
/cmsis-dsp-3.7.0-3.6.0/Include/dsp/
Dsupport_functions_f16.h169 int16_t res; in arm_typecast_s16_f16() local
170 res=*(int16_t*)memcpy((char*)&res,(char*)&x,sizeof(float16_t)); in arm_typecast_s16_f16()
171 return(res); in arm_typecast_s16_f16()
188 float16_t res; in arm_typecast_f16_s16() local
189 res=*(float16_t*)memcpy((char*)&res,(char*)&x,sizeof(int16_t)); in arm_typecast_f16_s16()
190 return(res); in arm_typecast_f16_s16()
/cmsis-dsp-3.7.0-3.6.0/Source/BasicMathFunctions/
Darm_negate_f32.c72 f32x4_t res; in arm_negate_f32() local
83 res = vnegq(vec1); in arm_negate_f32()
84 vst1q(pDst, res); in arm_negate_f32()
116 f32x4_t res; in arm_negate_f32() local
127 res = vnegq_f32(vec1); in arm_negate_f32()
128 vst1q_f32(pDst, res); in arm_negate_f32()
Darm_abs_f32.c74 f32x4_t res; in arm_abs_f32() local
86 res = vabsq(vec1); in arm_abs_f32()
87 vst1q(pDst, res); in arm_abs_f32()
121 f32x4_t res; in arm_abs_f32() local
132 res = vabsq_f32(vec1); in arm_abs_f32()
133 vst1q_f32(pDst, res); in arm_abs_f32()
Darm_offset_f32.c75 f32x4_t res; in arm_offset_f32() local
85 res = vaddq(vec1,offset); in arm_offset_f32()
86 vst1q(pDst, res); in arm_offset_f32()
120 f32x4_t res; in arm_offset_f32() local
131 res = vaddq_f32(vec1,vdupq_n_f32(offset)); in arm_offset_f32()
132 vst1q_f32(pDst, res); in arm_offset_f32()
Darm_abs_f16.c61 f16x8_t res; in arm_abs_f16() local
73 res = vabsq(vec1); in arm_abs_f16()
74 vst1q(pDst, res); in arm_abs_f16()
109 f16x8_t res; in arm_abs_f16() local
120 res = vabsq_f16(vec1); in arm_abs_f16()
121 vst1q_f16(pDst, res); in arm_abs_f16()
Darm_mult_f32.c74 f32x4_t res; in arm_mult_f32() local
85 res = vmulq(vec1, vec2); in arm_mult_f32()
86 vst1q(pDst, res); in arm_mult_f32()
122 f32x4_t res; in arm_mult_f32() local
134 res = vmulq_f32(vec1, vec2); in arm_mult_f32()
135 vst1q_f32(pDst, res); in arm_mult_f32()
Darm_add_f32.c74 f32x4_t res; in arm_add_f32() local
86 res = vaddq(vec1, vec2); in arm_add_f32()
87 vst1q(pDst, res); in arm_add_f32()
124 f32x4_t res; in arm_add_f32() local
136 res = vaddq_f32(vec1, vec2); in arm_add_f32()
137 vst1q_f32(pDst, res); in arm_add_f32()
Darm_scale_f32.c88 f32x4_t res; in arm_scale_f32() local
99 res = vmulq(vec1,scale); in arm_scale_f32()
100 vst1q(pDst, res); in arm_scale_f32()
133 f32x4_t res; in arm_scale_f32() local
144 res = vmulq_f32(vec1, vdupq_n_f32(scale)); in arm_scale_f32()
145 vst1q_f32(pDst, res); in arm_scale_f32()
Darm_sub_f32.c74 f32x4_t res; in arm_sub_f32() local
86 res = vsubq(vec1, vec2); in arm_sub_f32()
87 vst1q(pDst, res); in arm_sub_f32()
124 f32x4_t res; in arm_sub_f32() local
136 res = vsubq_f32(vec1, vec2); in arm_sub_f32()
137 vst1q_f32(pDst, res); in arm_sub_f32()
/cmsis-dsp-3.7.0-3.6.0/Scripts/
Dmfccdata.py70 res=""
71 res += "{\n"
73 res += str(self._cvt(sample))
74 res += ","
77 res += "\n"
79 res += "}"
80 return(res)
/cmsis-dsp-3.7.0-3.6.0/ComputeLibrary/Include/
DNEMath.h280 float32x4_t res = vmlaq_f32(vmlaq_f32(A, B, x2), vmlaq_f32(C, D, x2), x4); in vtaylor_polyq_f32() local
281 return res; in vtaylor_polyq_f32()
294 float64x2_t res = vmlaq_f64(vmlaq_f64(A, B, x2), vmlaq_f64(C, D, x2), x4); in vtaylor_polyq_f64() local
295 return res; in vtaylor_polyq_f64()
431 …const float16x8_t res = vaddq_f16(vaddq_f16(A, vmulq_f16(B, x2)), vmulq_f16(vaddq_f16(C, vmulq_f16… in vtaylor_polyq_f16() local
432 return res; in vtaylor_polyq_f16()
441 const float16x8_t res = vcvt_high_f16_f32(vcvt_f16_f32(vexpq_f32(x_low)), vexpq_f32(x_high)); in vexpq_f16() local
442 return res; in vexpq_f16()
451 const float16x8_t res = vcvt_high_f16_f32(vcvt_f16_f32(vlogq_f32(x_low)), vlogq_f32(x_high)); in vlogq_f16() local
452 return res; in vlogq_f16()

123