/cmsis-3.4.0/CMSIS/DSP/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 = (q31_t) (((((q63_t) in * in) << 1) + (energy << 32)) >> 32); in arm_lms_norm_q31() 132 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 135 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 138 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 141 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 160 acc += ((q63_t) (*px++)) * (*pb++); in arm_lms_norm_q31() 186 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_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()
|
/cmsis-3.4.0/CMSIS/DSP/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-3.4.0/CMSIS/DSP/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-3.4.0/CMSIS/DSP/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-3.4.0/CMSIS/DSP/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 …]
|
D | arm_power_q31.c | 61 q63_t * pResult) in arm_power_q31() 65 q63_t sum = 0LL; in arm_power_q31() 92 sum += ((q63_t) in * in) >> 8; in arm_power_q31() 104 q63_t * pResult) in arm_power_q31() 107 q63_t sum = 0; /* Temporary result storage */ in arm_power_q31() 121 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 124 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 127 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 130 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 152 sum += ((q63_t) in * in) >> 14U; in arm_power_q31()
|
D | arm_std_q31.c | 78 q63_t sum = 0; /* Accumulator */ in arm_std_q31() 79 q63_t meanOfSquares, squareOfMean; /* Square of mean and mean of square */ in arm_std_q31() 80 q63_t sumOfSquares = 0; /* Sum of squares */ in arm_std_q31() 101 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 106 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 110 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 114 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 138 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 147 meanOfSquares = (sumOfSquares / (q63_t)(blockSize - 1U)); in arm_std_q31() 150 squareOfMean = ( sum * sum / (q63_t)(blockSize * (blockSize - 1U))); in arm_std_q31()
|
/cmsis-3.4.0/CMSIS/DSP/Source/TransformFunctions/ |
D | arm_cfft_radix4_q31.c | 227 pSrc[2U * i1] = (((int32_t) (((q63_t) r1 * co2) >> 32)) + in arm_radix4_butterfly_q31() 228 ((int32_t) (((q63_t) s1 * si2) >> 32))) << 1U; in arm_radix4_butterfly_q31() 231 pSrc[(2U * i1) + 1U] = (((int32_t) (((q63_t) s1 * co2) >> 32)) - in arm_radix4_butterfly_q31() 232 ((int32_t) (((q63_t) r1 * si2) >> 32))) << 1U; in arm_radix4_butterfly_q31() 248 pSrc[2U * i2] = (((int32_t) (((q63_t) r1 * co1) >> 32)) + in arm_radix4_butterfly_q31() 249 ((int32_t) (((q63_t) s1 * si1) >> 32))) << 1U; in arm_radix4_butterfly_q31() 252 pSrc[(2U * i2) + 1U] = (((int32_t) (((q63_t) s1 * co1) >> 32)) - in arm_radix4_butterfly_q31() 253 ((int32_t) (((q63_t) r1 * si1) >> 32))) << 1U; in arm_radix4_butterfly_q31() 261 pSrc[2U * i3] = (((int32_t) (((q63_t) r2 * co3) >> 32)) + in arm_radix4_butterfly_q31() 262 ((int32_t) (((q63_t) s2 * si3) >> 32))) << 1U; in arm_radix4_butterfly_q31() [all …]
|
/cmsis-3.4.0/CMSIS/DSP/Source/FastMathFunctions/ |
D | arm_sqrt_q31.c | 99 var1 = ((q31_t) ((q63_t) var1 * (0x30000000 - in arm_sqrt_q31() 102 (((q63_t) var1 * var1) >> 31)) * in arm_sqrt_q31() 103 (q63_t) half) >> 31))) >> 31)) << 2; in arm_sqrt_q31() 105 var1 = ((q31_t) ((q63_t) var1 * (0x30000000 - in arm_sqrt_q31() 108 (((q63_t) var1 * var1) >> 31)) * in arm_sqrt_q31() 109 (q63_t) half) >> 31))) >> 31)) << 2; in arm_sqrt_q31() 111 var1 = ((q31_t) ((q63_t) var1 * (0x30000000 - in arm_sqrt_q31() 114 (((q63_t) var1 * var1) >> 31)) * in arm_sqrt_q31() 115 (q63_t) half) >> 31))) >> 31)) << 2; in arm_sqrt_q31() 118 var1 = ((q31_t) (((q63_t) temp1 * var1) >> 31)) << 1; in arm_sqrt_q31()
|
/cmsis-3.4.0/CMSIS/DSP/Source/SupportFunctions/ |
D | arm_float_to_q31.c | 112 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 118 *pDst++ = clip_q63_to_q31((q63_t) (*pSrc++ * 2147483648.0f)); in arm_float_to_q31() 203 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 209 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0f)); in arm_float_to_q31() 246 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 250 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 254 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 258 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 264 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0f)); in arm_float_to_q31() 265 *pDst++ = clip_q63_to_q31((q63_t) (*pIn++ * 2147483648.0f)); in arm_float_to_q31() [all …]
|