/cmsis-dsp-3.5.0/Source/FilteringFunctions/ |
D | arm_conv_fast_q31.c | 160 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_fast_q31() 161 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_fast_q31() 164 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_fast_q31() 165 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_fast_q31() 168 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_fast_q31() 169 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_fast_q31() 172 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_fast_q31() 173 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_fast_q31() 186 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_fast_q31() 187 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_fast_q31() [all …]
|
D | arm_correlate_fast_q31.c | 184 sum = (q31_t) ((((q63_t) sum << 32) + in arm_correlate_fast_q31() 185 ((q63_t) *px++ * (*py++))) >> 32); in arm_correlate_fast_q31() 188 sum = (q31_t) ((((q63_t) sum << 32) + in arm_correlate_fast_q31() 189 ((q63_t) *px++ * (*py++))) >> 32); in arm_correlate_fast_q31() 192 sum = (q31_t) ((((q63_t) sum << 32) + in arm_correlate_fast_q31() 193 ((q63_t) *px++ * (*py++))) >> 32); in arm_correlate_fast_q31() 196 sum = (q31_t) ((((q63_t) sum << 32) + in arm_correlate_fast_q31() 197 ((q63_t) *px++ * (*py++))) >> 32); in arm_correlate_fast_q31() 211 sum = (q31_t) ((((q63_t) sum << 32) + in arm_correlate_fast_q31() 212 ((q63_t) *px++ * (*py++))) >> 32); in arm_correlate_fast_q31() [all …]
|
D | arm_conv_partial_fast_q31.c | 179 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_partial_fast_q31() 180 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_partial_fast_q31() 183 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_partial_fast_q31() 184 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_partial_fast_q31() 187 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_partial_fast_q31() 188 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_partial_fast_q31() 191 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_partial_fast_q31() 192 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_partial_fast_q31() 211 sum = (q31_t) ((((q63_t) sum << 32) + in arm_conv_partial_fast_q31() 212 ((q63_t) *px++ * (*py--))) >> 32); in arm_conv_partial_fast_q31() [all …]
|
D | arm_fir_decimate_fast_q31.c | 74 q63_t acc0; /* Accumulator */ in arm_fir_decimate_fast_q31() 81 q63_t acc1, acc2, acc3; in arm_fir_decimate_fast_q31() 138 acc0 = (q31_t) ((((q63_t) acc0 << 32) + ((q63_t) x0 * c0)) >> 32); in arm_fir_decimate_fast_q31() 139 acc1 = (q31_t) ((((q63_t) acc1 << 32) + ((q63_t) x1 * c0)) >> 32); in arm_fir_decimate_fast_q31() 140 acc2 = (q31_t) ((((q63_t) acc2 << 32) + ((q63_t) x2 * c0)) >> 32); in arm_fir_decimate_fast_q31() 141 acc3 = (q31_t) ((((q63_t) acc3 << 32) + ((q63_t) x3 * c0)) >> 32); in arm_fir_decimate_fast_q31() 153 acc0 = (q31_t) ((((q63_t) acc0 << 32) + ((q63_t) x0 * c0)) >> 32); in arm_fir_decimate_fast_q31() 154 acc1 = (q31_t) ((((q63_t) acc1 << 32) + ((q63_t) x1 * c0)) >> 32); in arm_fir_decimate_fast_q31() 155 acc2 = (q31_t) ((((q63_t) acc2 << 32) + ((q63_t) x2 * c0)) >> 32); in arm_fir_decimate_fast_q31() 156 acc3 = (q31_t) ((((q63_t) acc3 << 32) + ((q63_t) x3 * c0)) >> 32); in arm_fir_decimate_fast_q31() [all …]
|
D | arm_fir_lattice_q31.c | 100 fnext0 = (q31_t) (((q63_t) gcurr0 * (*pk)) >> 32U); in arm_fir_lattice_q31() 104 gnext0 = (q31_t) (((q63_t) fcurr0 * (*pk)) >> 32U); in arm_fir_lattice_q31() 108 fnext1 = (q31_t) (((q63_t) fcurr0 * (*pk)) >> 32U); in arm_fir_lattice_q31() 110 gnext1 = (q31_t) (((q63_t) fcurr1 * (*pk)) >> 32U); in arm_fir_lattice_q31() 119 fnext2 = (q31_t) (((q63_t) fcurr1 * (*pk)) >> 32U); in arm_fir_lattice_q31() 121 gnext2 = (q31_t) (((q63_t) fcurr2 * (*pk)) >> 32U); in arm_fir_lattice_q31() 125 fnext3 = (q31_t) (((q63_t) fcurr2 * (*pk )) >> 32U); in arm_fir_lattice_q31() 127 gnext3 = (q31_t) (((q63_t) fcurr3 * (*pk++)) >> 32U); in arm_fir_lattice_q31() 158 fnext0 = (q31_t) (((q63_t) gcurr0 * (*pk)) >> 32U); in arm_fir_lattice_q31() 163 fnext1 = (q31_t) (((q63_t) gnext0 * (*pk)) >> 32U); in arm_fir_lattice_q31() [all …]
|
D | arm_iir_lattice_q31.c | 65 q63_t acc; /* Accumlator */ in arm_iir_lattice_q31() 101 fnext = __QSUB(fcurr, (q31_t) (((q63_t) gcurr * (*pk )) >> 31)); in arm_iir_lattice_q31() 104 gnext = __QADD(gcurr, (q31_t) (((q63_t) fnext * (*pk++)) >> 31)); in arm_iir_lattice_q31() 110 acc += ((q63_t) gnext * *pv++); in arm_iir_lattice_q31() 127 fnext = __QSUB(fcurr, (q31_t) (((q63_t) gcurr * (*pk )) >> 31)); in arm_iir_lattice_q31() 129 gnext = __QADD(gcurr, (q31_t) (((q63_t) fnext * (*pk++)) >> 31)); in arm_iir_lattice_q31() 132 acc += ((q63_t) gnext * *pv++); in arm_iir_lattice_q31() 141 fcurr = __QSUB(fnext, (q31_t) (((q63_t) gcurr * (*pk )) >> 31)); in arm_iir_lattice_q31() 143 gnext = __QADD(gcurr, (q31_t) (((q63_t) fcurr * (*pk++)) >> 31)); in arm_iir_lattice_q31() 146 acc += ((q63_t) gnext * *pv++); in arm_iir_lattice_q31() [all …]
|
D | arm_conv_partial_q31.c | 75 q63_t sum; /* Accumulator */ in arm_conv_partial_q31() 81 q63_t acc0, acc1, acc2; /* Accumulator */ in arm_conv_partial_q31() 182 sum += (q63_t) *px++ * (*py--); in arm_conv_partial_q31() 185 sum += (q63_t) *px++ * (*py--); in arm_conv_partial_q31() 188 sum += (q63_t) *px++ * (*py--); in arm_conv_partial_q31() 191 sum += (q63_t) *px++ * (*py--); in arm_conv_partial_q31() 210 sum += (q63_t) *px++ * (*py--); in arm_conv_partial_q31() 298 acc0 += (q63_t) x0 * c0; in arm_conv_partial_q31() 300 acc1 += (q63_t) x1 * c0; in arm_conv_partial_q31() 302 acc2 += (q63_t) x2 * c0; in arm_conv_partial_q31() [all …]
|
D | arm_lms_norm_q31.c | 80 q63_t acc; /* Accumulator */ in arm_lms_norm_q31() 81 q63_t energy; /* Energy of the input */ in arm_lms_norm_q31() 117 energy = (q31_t) ((((q63_t) energy << 32) - (((q63_t) x0 * x0) << 1)) >> 32); in arm_lms_norm_q31() 118 energy = ((((q63_t) in * in) << 1) + (energy << 32)) >> 32; in arm_lms_norm_q31() 133 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 136 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 139 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 142 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 161 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 187 errorXmu = (q31_t) (((q63_t) e * mu) >> 31); in arm_lms_norm_q31() [all …]
|
D | arm_lms_q31.c | 81 q63_t acc; /* Accumulator */ in arm_lms_q31() 119 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_q31() 122 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_q31() 125 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_q31() 128 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_q31() 147 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_q31() 170 alpha = (q31_t) (((q63_t) e * mu) >> 31); in arm_lms_q31() 190 coef = (q31_t) (((q63_t) alpha * (*px++)) >> (32)); in arm_lms_q31() 192 *pb = clip_q63_to_q31((q63_t) * pb + (coef << 1U)); in arm_lms_q31() 196 coef = (q31_t) (((q63_t) alpha * (*px++)) >> (32)); in arm_lms_q31() [all …]
|
D | arm_conv_q31.c | 243 q63_t sum; /* Accumulators */ in arm_conv_q31() 248 q63_t acc0, acc1, acc2; /* Accumulators */ in arm_conv_q31() 331 sum += (q63_t) *px++ * (*py--); in arm_conv_q31() 334 sum += (q63_t) *px++ * (*py--); in arm_conv_q31() 337 sum += (q63_t) *px++ * (*py--); in arm_conv_q31() 340 sum += (q63_t) *px++ * (*py--); in arm_conv_q31() 359 sum += (q63_t) *px++ * *py--; in arm_conv_q31() 438 acc0 += ((q63_t) x0 * c0); in arm_conv_q31() 440 acc1 += ((q63_t) x1 * c0); in arm_conv_q31() 442 acc2 += ((q63_t) x2 * c0); in arm_conv_q31() [all …]
|
D | arm_fir_interpolate_q15.c | 118 q63_t acc0 = 0LL; in arm_fir_interpolate_q15() 119 q63_t acc1 = 0LL; in arm_fir_interpolate_q15() 120 q63_t acc2 = 0LL; in arm_fir_interpolate_q15() 121 q63_t acc3 = 0LL; in arm_fir_interpolate_q15() 182 q63_t acc0 = 0LL; in arm_fir_interpolate_q15() 183 q63_t acc1 = 0LL; in arm_fir_interpolate_q15() 184 q63_t acc2 = 0LL; in arm_fir_interpolate_q15() 237 q63_t acc0 = 0LL; in arm_fir_interpolate_q15() 238 q63_t acc1 = 0LL; in arm_fir_interpolate_q15() 283 q63_t acc0 = 0LL; in arm_fir_interpolate_q15() [all …]
|
D | arm_fir_interpolate_q31.c | 115 q63_t acc0 = 0LL; in arm_fir_interpolate_q31() 116 q63_t acc1 = 0LL; in arm_fir_interpolate_q31() 117 q63_t acc2 = 0LL; in arm_fir_interpolate_q31() 118 q63_t acc3 = 0LL; in arm_fir_interpolate_q31() 179 q63_t acc0 = 0LL; in arm_fir_interpolate_q31() 180 q63_t acc1 = 0LL; in arm_fir_interpolate_q31() 181 q63_t acc2 = 0LL; in arm_fir_interpolate_q31() 234 q63_t acc0 = 0LL; in arm_fir_interpolate_q31() 235 q63_t acc1 = 0LL; in arm_fir_interpolate_q31() 280 q63_t acc0 = 0LL; in arm_fir_interpolate_q31() [all …]
|
D | arm_correlate_q31.c | 276 q63_t sum; /* Accumulators */ in arm_correlate_q31() 283 q63_t acc0, acc1, acc2; /* Accumulators */ in arm_correlate_q31() 395 sum += (q63_t) *px++ * (*py++); in arm_correlate_q31() 398 sum += (q63_t) *px++ * (*py++); in arm_correlate_q31() 401 sum += (q63_t) *px++ * (*py++); in arm_correlate_q31() 404 sum += (q63_t) *px++ * (*py++); in arm_correlate_q31() 424 sum += (q63_t) *px++ * (*py++); in arm_correlate_q31() 504 acc0 += ((q63_t) x0 * c0); in arm_correlate_q31() 506 acc1 += ((q63_t) x1 * c0); in arm_correlate_q31() 508 acc2 += ((q63_t) x2 * c0); in arm_correlate_q31() [all …]
|
D | arm_fir_decimate_q31.c | 77 q63_t acc0v, acc1v, acc2v, acc3v; in arm_fir_decimate_q31() 318 q63_t acc0; /* Accumulator */ in arm_fir_decimate_q31() 325 q63_t acc1, acc2, acc3; in arm_fir_decimate_q31() 382 acc0 += (q63_t) x0 * c0; in arm_fir_decimate_q31() 383 acc1 += (q63_t) x1 * c0; in arm_fir_decimate_q31() 384 acc2 += (q63_t) x2 * c0; in arm_fir_decimate_q31() 385 acc3 += (q63_t) x3 * c0; in arm_fir_decimate_q31() 397 acc0 += (q63_t) x0 * c0; in arm_fir_decimate_q31() 398 acc1 += (q63_t) x1 * c0; in arm_fir_decimate_q31() 399 acc2 += (q63_t) x2 * c0; in arm_fir_decimate_q31() [all …]
|
D | arm_biquad_cascade_df1_q31.c | 331 q63_t acc; /* Accumulator */ in arm_biquad_cascade_df1_q31() 375 …acc = ((q63_t) b0 * Xn) + ((q63_t) b1 * Xn1) + ((q63_t) b2 * Xn2) + ((q63_t) a1 * Yn1) + ((q63_t) … in arm_biquad_cascade_df1_q31() 391 …acc = ((q63_t) b0 * Xn2) + ((q63_t) b1 * Xn) + ((q63_t) b2 * Xn1) + ((q63_t) a1 * Yn2) + ((q63_t) … in arm_biquad_cascade_df1_q31() 407 …acc = ((q63_t) b0 * Xn1) + ((q63_t) b1 * Xn2) + ((q63_t) b2 * Xn) + ((q63_t) a1 * Yn1) + ((q63_t) … in arm_biquad_cascade_df1_q31() 423 …acc = ((q63_t) b0 * Xn) + ((q63_t) b1 * Xn1) + ((q63_t) b2 * Xn2) + ((q63_t) a1 * Yn2) + ((q63_t) … in arm_biquad_cascade_df1_q31() 464 …acc = ((q63_t) b0 * Xn) + ((q63_t) b1 * Xn1) + ((q63_t) b2 * Xn2) + ((q63_t) a1 * Yn1) + ((q63_t) … in arm_biquad_cascade_df1_q31()
|
D | arm_biquad_cascade_df1_32x64_q31.c | 186 q63_t *pState = S->pState; /* state pointer initialization */ in arm_biquad_cas_df1_32x64_q31_scalar() 188 q63_t acc; /* accumulator */ in arm_biquad_cas_df1_32x64_q31_scalar() 190 q63_t Yn1, Yn2; /* Output Filter state variables */ in arm_biquad_cas_df1_32x64_q31_scalar() 225 acc = (q63_t) Xn * b0; in arm_biquad_cas_df1_32x64_q31_scalar() 227 acc += (q63_t) Xn1 * b1; in arm_biquad_cas_df1_32x64_q31_scalar() 229 acc += (q63_t) Xn2 * b2; in arm_biquad_cas_df1_32x64_q31_scalar() 275 *pState++ = (q63_t) Xn1; in arm_biquad_cas_df1_32x64_q31_scalar() 276 *pState++ = (q63_t) Xn2; in arm_biquad_cas_df1_32x64_q31_scalar() 292 q63_t *pState = S->pState; /* state pointer initialization */ in arm_biquad_cas_df1_32x64_q31() 295 q63_t Yn1, Yn2; /* Output Filter state variables */ in arm_biquad_cas_df1_32x64_q31() [all …]
|
/cmsis-dsp-3.5.0/Source/ControllerFunctions/ |
D | arm_sin_cos_q31.c | 60 q63_t temp; in arm_sin_cos_q31() 78 temp = Dn * ((q63_t)d1 + d2); in arm_sin_cos_q31() 79 temp = temp - ((q63_t)Df << 32); in arm_sin_cos_q31() 80 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31() 81 temp = temp + ((3 * (q63_t)Df << 31) - (d2 + ((q63_t)d1 << 1)) * Dn); in arm_sin_cos_q31() 82 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31() 83 temp = temp + (q63_t)d1 * Dn; in arm_sin_cos_q31() 84 temp = (q63_t)fract * (temp >> 31); in arm_sin_cos_q31() 87 *pCosVal = clip_q63_to_q31((temp >> 31) + (q63_t)f1); in arm_sin_cos_q31() 96 temp = Dn * ((q63_t)d1 + d2); in arm_sin_cos_q31() [all …]
|
/cmsis-dsp-3.5.0/Source/ComplexMathFunctions/ |
D | arm_cmplx_dot_prod_q31.c | 64 q63_t * realResult, in arm_cmplx_dot_prod_q31() 65 q63_t * imagResult) in arm_cmplx_dot_prod_q31() 68 q63_t accReal = 0LL; in arm_cmplx_dot_prod_q31() 69 q63_t accImag = 0LL; in arm_cmplx_dot_prod_q31() 167 q63_t * realResult, in arm_cmplx_dot_prod_q31() 168 q63_t * imagResult) in arm_cmplx_dot_prod_q31() 171 q63_t real_sum = 0, imag_sum = 0; /* Temporary result variables */ in arm_cmplx_dot_prod_q31() 186 real_sum += ((q63_t)a0 * c0) >> 14; in arm_cmplx_dot_prod_q31() 187 imag_sum += ((q63_t)a0 * d0) >> 14; in arm_cmplx_dot_prod_q31() 188 real_sum -= ((q63_t)b0 * d0) >> 14; in arm_cmplx_dot_prod_q31() [all …]
|
D | arm_cmplx_mult_real_q31.c | 100 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 101 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 130 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 131 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 134 *pCmplxDst++ = (q31_t) clip_q63_to_q31(((q63_t) *pSrcCmplx++ * in) >> 31); in arm_cmplx_mult_real_q31() 135 *pCmplxDst++ = (q31_t) clip_q63_to_q31(((q63_t) *pSrcCmplx++ * in) >> 31); in arm_cmplx_mult_real_q31() 140 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 141 *pCmplxDst++ = (__SSAT((q31_t) (((q63_t) *pSrcCmplx++ * in) >> 32), 31) << 1); in arm_cmplx_mult_real_q31() 143 *pCmplxDst++ = (q31_t) clip_q63_to_q31(((q63_t) *pSrcCmplx++ * in) >> 31); in arm_cmplx_mult_real_q31() 144 *pCmplxDst++ = (q31_t) clip_q63_to_q31(((q63_t) *pSrcCmplx++ * in) >> 31); in arm_cmplx_mult_real_q31() [all …]
|
D | arm_cmplx_mult_cmplx_q31.c | 192 *pDst++ = (q31_t) ( (((q63_t) a * c) >> 33) - (((q63_t) b * d) >> 33) ); in arm_cmplx_mult_cmplx_q31() 193 *pDst++ = (q31_t) ( (((q63_t) a * d) >> 33) + (((q63_t) b * c) >> 33) ); in arm_cmplx_mult_cmplx_q31() 199 *pDst++ = (q31_t) ( (((q63_t) a * c) >> 33) - (((q63_t) b * d) >> 33) ); in arm_cmplx_mult_cmplx_q31() 200 *pDst++ = (q31_t) ( (((q63_t) a * d) >> 33) + (((q63_t) b * c) >> 33) ); in arm_cmplx_mult_cmplx_q31() 206 *pDst++ = (q31_t) ( (((q63_t) a * c) >> 33) - (((q63_t) b * d) >> 33) ); in arm_cmplx_mult_cmplx_q31() 207 *pDst++ = (q31_t) ( (((q63_t) a * d) >> 33) + (((q63_t) b * c) >> 33) ); in arm_cmplx_mult_cmplx_q31() 213 *pDst++ = (q31_t) ( (((q63_t) a * c) >> 33) - (((q63_t) b * d) >> 33) ); in arm_cmplx_mult_cmplx_q31() 214 *pDst++ = (q31_t) ( (((q63_t) a * d) >> 33) + (((q63_t) b * c) >> 33) ); in arm_cmplx_mult_cmplx_q31() 241 *pDst++ = (q31_t) ( (((q63_t) a * c) >> 33) - (((q63_t) b * d) >> 33) ); in arm_cmplx_mult_cmplx_q31() 242 *pDst++ = (q31_t) ( (((q63_t) a * d) >> 33) + (((q63_t) b * c) >> 33) ); in arm_cmplx_mult_cmplx_q31()
|
/cmsis-dsp-3.5.0/Source/MatrixFunctions/ |
D | arm_mat_mult_fast_q31.c | 152 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) inA1 * inB1)) >> 32); in arm_mat_mult_fast_q31() 153 sum2 = (q31_t) ((((q63_t) sum2 << 32) + ((q63_t) inA1 * inB2)) >> 32); in arm_mat_mult_fast_q31() 154 sum3 = (q31_t) ((((q63_t) sum3 << 32) + ((q63_t) inA2 * inB1)) >> 32); in arm_mat_mult_fast_q31() 155 sum4 = (q31_t) ((((q63_t) sum4 << 32) + ((q63_t) inA2 * inB2)) >> 32); in arm_mat_mult_fast_q31() 215 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31() 222 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31() 229 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31() 236 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31() 258 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) *pInA++ * *pInB)) >> 32); in arm_mat_mult_fast_q31() 312 sum1 = (q31_t) ((((q63_t) sum1 << 32) + ((q63_t) inA1 * inB1)) >> 32); in arm_mat_mult_fast_q31() [all …]
|
/cmsis-dsp-3.5.0/Source/StatisticsFunctions/ |
D | arm_var_q31.c | 68 q63_t sumOfSquares = 0LL; in arm_var_q31() 69 q63_t meanOfSquares, squareOfMean; /* square of mean and mean of square */ in arm_var_q31() 70 q63_t sum = 0LL; in arm_var_q31() 109 sumOfSquares += ((q63_t) (in) * (in)); in arm_var_q31() 119 meanOfSquares = sumOfSquares / (q63_t) (blockSize - 1U); in arm_var_q31() 122 squareOfMean = sum * sum / (q63_t) (blockSize * (blockSize - 1U)); in arm_var_q31() 134 q63_t sum = 0; /* Temporary result storage */ in arm_var_q31() 135 q63_t meanOfSquares, squareOfMean; /* Square of mean and mean of square */ in arm_var_q31() 136 q63_t sumOfSquares = 0; /* Sum of squares */ in arm_var_q31() 157 sumOfSquares += ((q63_t) (in) * (in)); in arm_var_q31() [all …]
|
/cmsis-dsp-3.5.0/Source/TransformFunctions/ |
D | arm_cfft_radix4_q31.c | 237 pSrc[2U * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32)) + in arm_radix4_butterfly_q31() 238 ((int32_t) (((q63_t) s1 * si2) >> 32))) << 1U; in arm_radix4_butterfly_q31() 241 pSrc[(2U * i1) + 1U] = (((int32_t) (((q63_t) s1 * co2) >> 32)) - in arm_radix4_butterfly_q31() 242 ((int32_t) (((q63_t) r1 * si2) >> 32))) << 1U; in arm_radix4_butterfly_q31() 258 pSrc[2U * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) + in arm_radix4_butterfly_q31() 259 ((int32_t) (((q63_t) s1 * si1) >> 32))) << 1U; in arm_radix4_butterfly_q31() 262 pSrc[(2U * i2) + 1U] = (((int32_t) (((q63_t) s1 * co1) >> 32)) - in arm_radix4_butterfly_q31() 263 ((int32_t) (((q63_t) r1 * si1) >> 32))) << 1U; in arm_radix4_butterfly_q31() 271 pSrc[2U * i3] = (((int32_t) (((q63_t) r2 * co3) >> 32)) + in arm_radix4_butterfly_q31() 272 ((int32_t) (((q63_t) s2 * si3) >> 32))) << 1U; in arm_radix4_butterfly_q31() [all …]
|
/cmsis-dsp-3.5.0/Source/SupportFunctions/ |
D | arm_f64_to_q31.c | 90 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_f64_to_q31() 94 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_f64_to_q31() 98 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_f64_to_q31() 102 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_f64_to_q31() 108 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0)); in arm_f64_to_q31() 109 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0)); in arm_f64_to_q31() 110 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0)); in arm_f64_to_q31() 111 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0)); in arm_f64_to_q31() 138 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_f64_to_q31() 144 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0)); in arm_f64_to_q31()
|
/cmsis-dsp-3.5.0/Source/FastMathFunctions/ |
D | arm_sqrt_q31.c | 82 temp = ((q63_t) var1 * var1) >> 28; in arm_sqrt_q31() 83 temp = ((q63_t) number * temp) >> 31; 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() 92 var1 = ((q63_t) var1 * temp) >> 29; in arm_sqrt_q31() 95 temp = ((q63_t) var1 * var1) >> 28; in arm_sqrt_q31() 96 temp = ((q63_t) number * temp) >> 31; in arm_sqrt_q31() 98 var1 = ((q63_t) var1 * temp) >> 29; in arm_sqrt_q31() 101 var1 = ((q31_t) (((q63_t) number * var1) >> 28)); in arm_sqrt_q31()
|