Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 37) sorted by relevance

12

/cmsis-dsp-3.5.0/Source/FastMathFunctions/
Darm_atan2_q31.c108 int16_t shift; in arm_atan_q31() local
110 arm_divide_q31(x,y,&ratio,&shift); in arm_atan_q31()
113 if (shift >= 0) in arm_atan_q31()
115 ratio = clip_q63_to_q31((q63_t) ratio << shift); in arm_atan_q31()
119 ratio = (ratio >> -shift); in arm_atan_q31()
128 int16_t shift; in arm_atan_q31() local
130 arm_divide_q31(y,x,&ratio,&shift); in arm_atan_q31()
133 if (shift >= 0) in arm_atan_q31()
135 ratio = clip_q63_to_q31((q63_t) ratio << shift); in arm_atan_q31()
139 ratio = (ratio >> -shift); in arm_atan_q31()
Darm_atan2_q15.c108 int16_t shift; in arm_atan_q15() local
110 arm_divide_q15(x,y,&ratio,&shift); in arm_atan_q15()
113 if (shift >=0) in arm_atan_q15()
115 ratio = __SSAT(((q31_t) ratio << shift), 16); in arm_atan_q15()
119 ratio = (ratio >> -shift); in arm_atan_q15()
128 int16_t shift; in arm_atan_q15() local
130 arm_divide_q15(y,x,&ratio,&shift); in arm_atan_q15()
133 if (shift >=0) in arm_atan_q15()
135 ratio = __SSAT(((q31_t) ratio << shift), 16); in arm_atan_q15()
139 ratio = (ratio >> -shift); in arm_atan_q15()
Darm_divide_q15.c63 int16_t *shift) in arm_divide_q15() argument
69 *shift = 0; in arm_divide_q15()
94 *shift = shiftForNormalizing; in arm_divide_q15()
Darm_divide_q31.c58 int16_t *shift) in arm_divide_q31() argument
64 *shift = 0; in arm_divide_q31()
89 *shift = shiftForNormalizing; in arm_divide_q31()
/cmsis-dsp-3.5.0/Source/FilteringFunctions/
Darm_biquad_cascade_df1_q15.c69 int shift; in arm_biquad_cascade_df1_q15() local
79 shift = (15 - postShift) - 32; in arm_biquad_cascade_df1_q15()
121 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
126 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
134 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
140 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
171 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
181 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
195 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
205 acc = sqrshrl_sat48(acc, shift); in arm_biquad_cascade_df1_q15()
[all …]
Darm_biquad_cascade_df1_32x64_q31.c193 int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ in arm_biquad_cas_df1_32x64_q31_scalar() local
246 Yn1 = acc << shift; in arm_biquad_cas_df1_32x64_q31_scalar()
297 int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ in arm_biquad_cas_df1_32x64_q31() local
358 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
380 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
393 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
403 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
413 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
437 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
453 Yn1 = asrl(Yn1, -shift); in arm_biquad_cas_df1_32x64_q31()
[all …]
Darm_biquad_cascade_df1_q31.c68 int shift; in arm_biquad_cascade_df1_q31() local
80 shift = (postShift + 1 + 8); in arm_biquad_cascade_df1_q31()
123 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
130 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
164 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
181 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
195 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
202 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
231 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
238 acc = lsll(acc, shift); in arm_biquad_cascade_df1_q31()
[all …]
Darm_biquad_cascade_df1_fast_q31.c76 int32_t shift = (int32_t) S->postShift + 1; /* Shift to be applied to the output */ in arm_biquad_cascade_df1_fast_q31() local
128 Yn2 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
154 Yn1 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
180 Yn2 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
212 Yn1 = acc << shift; in arm_biquad_cascade_df1_fast_q31()
258 acc = acc << shift; in arm_biquad_cascade_df1_fast_q31()
Darm_biquad_cascade_df1_fast_q15.c76 int32_t shift = (int32_t) (15 - S->postShift); /* Post shift */ in arm_biquad_cascade_df1_fast_q15() local
122 out = __SSAT((acc >> shift), 16); in arm_biquad_cascade_df1_fast_q15()
149 out = __SSAT((acc >> shift), 16); in arm_biquad_cascade_df1_fast_q15()
206 out = __SSAT((acc >> shift), 16); in arm_biquad_cascade_df1_fast_q15()
Darm_levinson_durbin_q31.c59 int16_t shift; in divide() local
77 status=arm_divide_q15(HALF_Q15,d>>16,&inverse,&shift); in divide()
83 r = TWO_Q30 - (r << shift); in divide()
86 r = r << (shift + 2); in divide()
/cmsis-dsp-3.5.0/Source/BasicMathFunctions/
Darm_scale_q7.c61 int8_t shift, in arm_scale_q7() argument
83 low = vqshlq_r(low, shift); in arm_scale_q7()
86 high = vqshlq_r(high, shift); in arm_scale_q7()
109 low = vqshlq_r(low, shift); in arm_scale_q7()
113 high = vqshlq_r(high, shift); in arm_scale_q7()
126 int8_t shift, in arm_scale_q7() argument
131 int8_t kShift = 7 - shift; /* Shift to apply after scaling */ in arm_scale_q7()
Darm_scale_q15.c61 int8_t shift, in arm_scale_q15() argument
81 low = vqshlq_r(low, shift); in arm_scale_q15()
85 high = vqshlq_r(high, shift); in arm_scale_q15()
108 low = vqshlq_r(low, shift); in arm_scale_q15()
112 high = vqshlq_r(high, shift); in arm_scale_q15()
124 int8_t shift, in arm_scale_q15() argument
129 int8_t kShift = 15 - shift; /* Shift to apply after scaling */ in arm_scale_q15()
Darm_scale_q31.c66 int8_t shift, in arm_scale_q31() argument
84 vecDst = vqshlq_r(vecDst, shift + 1); in arm_scale_q31()
105 vecDst = vqshlq_r(vecDst, shift + 1); in arm_scale_q31()
114 int8_t shift, in arm_scale_q31() argument
120 int8_t kShift = shift + 1; /* Shift to apply after scaling */ in arm_scale_q31()
/cmsis-dsp-3.5.0/Source/DistanceFunctions/
Darm_boolean_distance_template.h102 int shift; in FUNC() local
150 shift = 0; in FUNC()
151 while(shift < 32) in FUNC()
170 shift ++; in FUNC()
253 int shift; in FUNC() local
372 shift = 0; in FUNC()
373 while(shift < 32) in FUNC()
392 shift ++; in FUNC()
473 int shift; in FUNC() local
479 shift = 0; in FUNC()
[all …]
/cmsis-dsp-3.5.0/PythonWrapper/examples/kws_example/kws/
DAppNodes.h180 int16_t *shift) in arm_divide_q15() argument
186 *shift = 0; in arm_divide_q15()
211 *shift = shiftForNormalizing; in arm_divide_q15()
253 int16_t shift; in dsp_zcr_q15() local
255 arm_status status=arm_divide_q15(k,blockSize-1,&quotient,&shift); in dsp_zcr_q15()
257 if (shift==1) in dsp_zcr_q15()
259 arm_shift_q15(&quotient,shift,&quotient,1); in dsp_zcr_q15()
/cmsis-dsp-3.5.0/Source/MatrixFunctions/
Darm_mat_scale_q31.c58 int32_t shift, in arm_mat_scale_q31() argument
67 int32_t totShift = shift + 1; /* shift to apply after scaling */ in arm_mat_scale_q31()
135 int32_t shift, in arm_mat_scale_q31() argument
143 int32_t kShift = shift + 1; /* Shift to apply after scaling */ in arm_mat_scale_q31()
Darm_mat_scale_q15.c58 int32_t shift, in arm_mat_scale_q15() argument
68 int32_t totShift = shift + 1; /* shift to apply after scaling */ in arm_mat_scale_q15()
136 int32_t shift, in arm_mat_scale_q15() argument
144 int32_t kShift = 15 - shift; /* Total shift to apply after scaling */ in arm_mat_scale_q15()
/cmsis-dsp-3.5.0/Testing/Source/Tests/
DFastMathQ15.cpp66 int16_t *shiftp = shift.ptr(); in test_division_q15()
79 ASSERT_EQ(refShift,shift); in test_division_q15()
140 int16_t *shiftp = shift.ptr(); in test_recip_q15()
151 ASSERT_EQ(refShift,shift); in test_recip_q15()
196 shift.create(ref.nbSamples(),FastMathQ15::SHIFT_S16_ID,mgr); in setUp()
253 shift.create(ref.nbSamples(),FastMathQ15::SHIFT_S16_ID,mgr); in setUp()
DFastMathQ31.cpp64 int16_t *shiftp = shift.ptr(); in test_division_q31()
78 ASSERT_EQ(refShift,shift); in test_division_q31()
137 int16_t *shiftp = shift.ptr(); in test_recip_q31()
148 ASSERT_EQ(refShift,shift); in test_recip_q31()
193 shift.create(ref.nbSamples(),FastMathQ31::SHIFT_S16_ID,mgr); in setUp()
250 shift.create(ref.nbSamples(),FastMathQ31::SHIFT_S16_ID,mgr); in setUp()
/cmsis-dsp-3.5.0/Source/TransformFunctions/
Darm_mfcc_q31.c102 int16_t shift; in arm_mfcc_q31() local
104 status = arm_divide_q31(0x7FFFFFFF,m,&quotient,&shift); in arm_mfcc_q31()
110 arm_scale_q31(pSrc,quotient,shift,pSrc,S->fftLen); in arm_mfcc_q31()
Darm_mfcc_q15.c101 int16_t shift; in arm_mfcc_q15() local
103 status = arm_divide_q15(0x7FFF,m,&quotient,&shift); in arm_mfcc_q15()
109 arm_scale_q15(pSrc,quotient,shift,pSrc,S->fftLen); in arm_mfcc_q15()
/cmsis-dsp-3.5.0/PythonWrapper/cmsisdsp_pkg/src/
Dcmsisdsp_fastmath.c312 int16_t shift; // output in cmsis_arm_divide_q31() local
319 arm_status returnValue = arm_divide_q31(num,den,&pOut,&shift); in cmsis_arm_divide_q31()
322 PyObject* pShiftOBJ=Py_BuildValue("h",shift); in cmsis_arm_divide_q31()
341 int16_t shift; // output in cmsis_arm_divide_q15() local
348 arm_status returnValue = arm_divide_q15(num,den,&pOut,&shift); in cmsis_arm_divide_q15()
351 PyObject* pShiftOBJ=Py_BuildValue("h",shift); in cmsis_arm_divide_q15()
/cmsis-dsp-3.5.0/Include/dsp/
Dfast_math_functions.h330 int16_t *shift);
347 int16_t *shift);
Dbasic_math_functions.h303 int8_t shift,
319 int8_t shift,
335 int8_t shift,
/cmsis-dsp-3.5.0/Include/
Darm_helium_utils.h608 #define MVE_ASRL_SAT16(acc, shift) ((sqrshrl_sat48(acc, -(32-shift)) >> 32) & 0xffffffff) argument
609 #define MVE_ASRL_SAT32(acc, shift) ((sqrshrl(acc, -(32-shift)) >> 32) & 0xffffffff) argument

12