/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/BasicMathFunctions/ |
D | arm_scale_q31.c | 114 q31_t in, out; /* Temporary variables */ in arm_scale_q31() local 130 in = *pSrc++; /* read input from source */ in arm_scale_q31() 131 in = ((q63_t) in * scaleFract) >> 32; /* multiply input with scaler value */ in arm_scale_q31() 132 out = in << kShift; /* apply shifting */ in arm_scale_q31() 133 if (in != (out >> kShift)) /* saturate the result */ in arm_scale_q31() 134 out = 0x7FFFFFFF ^ (in >> 31); in arm_scale_q31() 137 in = *pSrc++; in arm_scale_q31() 138 in = ((q63_t) in * scaleFract) >> 32; in arm_scale_q31() 139 out = in << kShift; in arm_scale_q31() 140 if (in != (out >> kShift)) in arm_scale_q31() [all …]
|
D | arm_abs_q15.c | 103 q15_t in; /* Temporary input variable */ in arm_abs_q15() local 115 in = *pSrc++; in arm_abs_q15() 117 *pDst++ = (in > 0) ? in : (q15_t)__QSUB16(0, in); in arm_abs_q15() 119 *pDst++ = (in > 0) ? in : ((in == (q15_t) 0x8000) ? 0x7fff : -in); in arm_abs_q15() 122 in = *pSrc++; in arm_abs_q15() 124 *pDst++ = (in > 0) ? in : (q15_t)__QSUB16(0, in); in arm_abs_q15() 126 *pDst++ = (in > 0) ? in : ((in == (q15_t) 0x8000) ? 0x7fff : -in); in arm_abs_q15() 129 in = *pSrc++; in arm_abs_q15() 131 *pDst++ = (in > 0) ? in : (q15_t)__QSUB16(0, in); in arm_abs_q15() 133 *pDst++ = (in > 0) ? in : ((in == (q15_t) 0x8000) ? 0x7fff : -in); in arm_abs_q15() [all …]
|
D | arm_abs_q7.c | 105 q7_t in; /* Temporary input variable */ in arm_abs_q7() local 117 in = *pSrc++; in arm_abs_q7() 119 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() 121 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7() 124 in = *pSrc++; in arm_abs_q7() 126 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() 128 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7() 131 in = *pSrc++; in arm_abs_q7() 133 *pDst++ = (in > 0) ? in : (q7_t)__QSUB8(0, in); in arm_abs_q7() 135 *pDst++ = (in > 0) ? in : ((in == (q7_t) 0x80) ? (q7_t) 0x7f : -in); in arm_abs_q7() [all …]
|
D | arm_abs_q31.c | 105 q31_t in; /* Temporary variable */ in arm_abs_q31() local 145 in = *pSrc++; in arm_abs_q31() 147 *pDst++ = (in > 0) ? in : (q31_t)__QSUB(0, in); in arm_abs_q31() 149 *pDst++ = (in > 0) ? in : ((in == INT32_MIN) ? INT32_MAX : -in); in arm_abs_q31() 152 in = *pSrc++; in arm_abs_q31() 154 *pDst++ = (in > 0) ? in : (q31_t)__QSUB(0, in); in arm_abs_q31() 156 *pDst++ = (in > 0) ? in : ((in == INT32_MIN) ? INT32_MAX : -in); in arm_abs_q31() 159 in = *pSrc++; in arm_abs_q31() 161 *pDst++ = (in > 0) ? in : (q31_t)__QSUB(0, in); in arm_abs_q31() 163 *pDst++ = (in > 0) ? in : ((in == INT32_MIN) ? INT32_MAX : -in); in arm_abs_q31() [all …]
|
D | arm_negate_q31.c | 103 q31_t in; /* Temporary input variable */ in arm_negate_q31() local 115 in = *pSrc++; in arm_negate_q31() 117 *pDst++ = __QSUB(0, in); in arm_negate_q31() 119 *pDst++ = (in == INT32_MIN) ? INT32_MAX : -in; in arm_negate_q31() 122 in = *pSrc++; in arm_negate_q31() 124 *pDst++ = __QSUB(0, in); in arm_negate_q31() 126 *pDst++ = (in == INT32_MIN) ? INT32_MAX : -in; in arm_negate_q31() 129 in = *pSrc++; in arm_negate_q31() 131 *pDst++ = __QSUB(0, in); in arm_negate_q31() 133 *pDst++ = (in == INT32_MIN) ? INT32_MAX : -in; in arm_negate_q31() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/StatisticsFunctions/ |
D | arm_var_q15.c | 68 q15_t in; in arm_var_q15() local 98 in = *pSrc++; in arm_var_q15() 101 sumOfSquares = __SMLALD(in, in, sumOfSquares); in arm_var_q15() 103 sumOfSquares += (in * in); in arm_var_q15() 106 sum += in; in arm_var_q15() 132 q15_t in; /* Temporary variable to store input value */ in arm_var_q15() local 167 in = *pSrc++; in arm_var_q15() 168 sumOfSquares += (in * in); in arm_var_q15() 169 sum += in; in arm_var_q15() 171 in = *pSrc++; in arm_var_q15() [all …]
|
D | arm_var_q31.c | 71 q31_t in; in arm_var_q31() local 107 in = *pSrc++ >> 8U; in arm_var_q31() 109 sumOfSquares += ((q63_t) (in) * (in)); in arm_var_q31() 111 sum += in; in arm_var_q31() 137 q31_t in; /* Temporary variable to store input value */ in arm_var_q31() local 155 in = *pSrc++ >> 8U; in arm_var_q31() 157 sumOfSquares += ((q63_t) (in) * (in)); in arm_var_q31() 159 sum += in; in arm_var_q31() 161 in = *pSrc++ >> 8U; in arm_var_q31() 162 sumOfSquares += ((q63_t) (in) * (in)); in arm_var_q31() [all …]
|
D | arm_power_f32.c | 77 float32_t in; in arm_power_f32() local 103 in = *pSrc++; in arm_power_f32() 104 sum += in * in; in arm_power_f32() 120 float32_t in; /* Temporary variable to store input value */ in arm_power_f32() local 153 in = *pSrc++; in arm_power_f32() 154 sum += in * in; in arm_power_f32() 171 float32_t in; /* Temporary variable to store input value */ in arm_power_f32() local 183 in = *pSrc++; in arm_power_f32() 184 sum += in * in; in arm_power_f32() 186 in = *pSrc++; in arm_power_f32() [all …]
|
D | arm_std_q31.c | 81 q31_t in; /* Temporary variable to store input value */ in arm_std_q31() local 99 in = *pSrc++ >> 8U; in arm_std_q31() 101 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 103 sum += in; in arm_std_q31() 105 in = *pSrc++ >> 8U; in arm_std_q31() 106 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 107 sum += in; in arm_std_q31() 109 in = *pSrc++ >> 8U; in arm_std_q31() 110 sumOfSquares += ((q63_t) (in) * (in)); in arm_std_q31() 111 sum += in; in arm_std_q31() [all …]
|
D | arm_power_q31.c | 66 q31_t in; in arm_power_q31() local 91 in = *pSrc++; in arm_power_q31() 92 sum += ((q63_t) in * in) >> 8; in arm_power_q31() 108 q31_t in; /* Temporary variable to store input value */ in arm_power_q31() local 120 in = *pSrc++; in arm_power_q31() 121 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 123 in = *pSrc++; in arm_power_q31() 124 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() 126 in = *pSrc++; in arm_power_q31() 127 sum += ((q63_t) in * in) >> 14U; in arm_power_q31() [all …]
|
D | arm_std_q15.c | 78 q15_t in; /* Temporary variable to store input value */ in arm_std_q15() local 113 in = *pSrc++; in arm_std_q15() 114 sumOfSquares += (in * in); in arm_std_q15() 115 sum += in; in arm_std_q15() 117 in = *pSrc++; in arm_std_q15() 118 sumOfSquares += (in * in); in arm_std_q15() 119 sum += in; in arm_std_q15() 121 in = *pSrc++; in arm_std_q15() 122 sumOfSquares += (in * in); in arm_std_q15() 123 sum += in; in arm_std_q15() [all …]
|
D | arm_power_q15.c | 66 q15_t in; in arm_power_q15() local 91 in = *pSrc++; in arm_power_q15() 92 sum += ((q31_t) in * in); in arm_power_q15() 108 q15_t in; /* Temporary variable to store input value */ in arm_power_q15() local 131 in = *pSrc++; in arm_power_q15() 132 sum += ((q31_t) in * in); in arm_power_q15() 134 in = *pSrc++; in arm_power_q15() 135 sum += ((q31_t) in * in); in arm_power_q15() 137 in = *pSrc++; in arm_power_q15() 138 sum += ((q31_t) in * in); in arm_power_q15() [all …]
|
D | arm_power_q7.c | 65 q7_t in; in arm_power_q7() local 90 in = *pSrc++; in arm_power_q7() 91 sum += ((q15_t) in * in); in arm_power_q7() 107 q7_t in; /* Temporary variable to store input value */ in arm_power_q7() local 134 in = *pSrc++; in arm_power_q7() 135 sum += ((q15_t) in * in); in arm_power_q7() 137 in = *pSrc++; in arm_power_q7() 138 sum += ((q15_t) in * in); in arm_power_q7() 140 in = *pSrc++; in arm_power_q7() 141 sum += ((q15_t) in * in); in arm_power_q7() [all …]
|
D | arm_rms_f32.c | 82 float32_t in; /* Temporary variable to store input value */ in arm_rms_f32() local 116 in = *pSrc++; in arm_rms_f32() 117 sum += in * in; in arm_rms_f32() 134 float32_t in; /* Temporary variable to store input value */ in arm_rms_f32() local 145 in = *pSrc++; in arm_rms_f32() 147 sum += in * in; in arm_rms_f32() 149 in = *pSrc++; in arm_rms_f32() 150 sum += in * in; in arm_rms_f32() 152 in = *pSrc++; in arm_rms_f32() 153 sum += in * in; in arm_rms_f32() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/TransformFunctions/ |
D | arm_dct4_f32.c | 135 float32_t in; /* Temporary variable */ in arm_dct4_f32() local 258 in = *pS1++ * (float32_t) 0.5; in arm_dct4_f32() 260 *pbuff++ = in; in arm_dct4_f32() 271 in = *pS1++ - in; in arm_dct4_f32() 272 *pbuff++ = in; in arm_dct4_f32() 276 in = *pS1++ - in; in arm_dct4_f32() 277 *pbuff++ = in; in arm_dct4_f32() 280 in = *pS1++ - in; in arm_dct4_f32() 281 *pbuff++ = in; in arm_dct4_f32() 284 in = *pS1++ - in; in arm_dct4_f32() [all …]
|
D | arm_dct4_q15.c | 59 q15_t in; /* Temporary variable */ in arm_dct4_q15() local 186 in = *pS1++ >> 1U; in arm_dct4_q15() 188 *pbuff++ = in; in arm_dct4_q15() 199 in = *pS1++ - in; in arm_dct4_q15() 200 *pbuff++ = in; in arm_dct4_q15() 204 in = *pS1++ - in; in arm_dct4_q15() 205 *pbuff++ = in; in arm_dct4_q15() 208 in = *pS1++ - in; in arm_dct4_q15() 209 *pbuff++ = in; in arm_dct4_q15() 212 in = *pS1++ - in; in arm_dct4_q15() [all …]
|
D | arm_dct4_q31.c | 62 q31_t in; /* Temporary variable */ in arm_dct4_q31() local 189 in = *pS1++ >> 1U; in arm_dct4_q31() 191 *pbuff++ = in; in arm_dct4_q31() 202 in = *pS1++ - in; in arm_dct4_q31() 203 *pbuff++ = in; in arm_dct4_q31() 207 in = *pS1++ - in; in arm_dct4_q31() 208 *pbuff++ = in; in arm_dct4_q31() 211 in = *pS1++ - in; in arm_dct4_q31() 212 *pbuff++ = in; in arm_dct4_q31() 215 in = *pS1++ - in; in arm_dct4_q31() [all …]
|
D | arm_bitreversal.c | 50 float32_t in; in arm_bitreversal_f32() local 63 in = pSrc[2U * i]; in arm_bitreversal_f32() 65 pSrc[2U * j] = in; in arm_bitreversal_f32() 68 in = pSrc[(2U * i) + 1U]; in arm_bitreversal_f32() 70 pSrc[(2U * j) + 1U] = in; in arm_bitreversal_f32() 73 in = pSrc[2U * (i + fftLenBy2p1)]; in arm_bitreversal_f32() 75 pSrc[2U * (j + fftLenBy2p1)] = in; in arm_bitreversal_f32() 78 in = pSrc[(2U * (i + fftLenBy2p1)) + 1U]; in arm_bitreversal_f32() 81 pSrc[(2U * (j + fftLenBy2p1)) + 1U] = in; in arm_bitreversal_f32() 86 in = pSrc[2U * (i + 1U)]; in arm_bitreversal_f32() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/SupportFunctions/ |
D | arm_float_to_q31.c | 76 float32_t in; in arm_float_to_q31() local 110 in = (*pSrc++ * 2147483648.0f); in arm_float_to_q31() 111 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q31() 112 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 138 float32_t in; in arm_float_to_q31() local 200 in = *pIn++; in arm_float_to_q31() 201 in = (in * 2147483648.0f); in arm_float_to_q31() 202 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q31() 203 *pDst++ = clip_q63_to_q31((q63_t) (in)); in arm_float_to_q31() 229 float32_t in; in arm_float_to_q31() local [all …]
|
D | arm_float_to_q15.c | 73 float32_t in; in arm_float_to_q15() local 106 in = (*pSrc++ * 32768.0f); in arm_float_to_q15() 107 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q15() 108 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15() 140 float32_t in; in arm_float_to_q15() local 198 in = *pIn++; in arm_float_to_q15() 199 in = (in * 32768.0f); in arm_float_to_q15() 200 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q15() 201 *pDst++ = (q15_t) (__SSAT((q31_t) (in), 16)); in arm_float_to_q15() 225 float32_t in; in arm_float_to_q15() local [all …]
|
D | arm_float_to_q7.c | 74 float32_t in; in arm_float_to_q7() local 123 in = (*pSrcVec++ * 128); in arm_float_to_q7() 124 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q7() 125 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7() 150 float32_t in; in arm_float_to_q7() local 221 in = *pIn++; in arm_float_to_q7() 222 in = (in * 128); in arm_float_to_q7() 223 in += in > 0.0f ? 0.5f : -0.5f; in arm_float_to_q7() 224 *pDst++ = (q7_t) (__SSAT((q15_t) (in), 8)); in arm_float_to_q7() 249 float32_t in; in arm_float_to_q7() local [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/MatrixFunctions/ |
D | arm_mat_scale_q31.c | 144 q31_t in, out; /* Temporary variabels */ in arm_mat_scale_q31() local 173 in = *pIn++; /* read four inputs from source */ in arm_mat_scale_q31() 174 in = ((q63_t) in * scaleFract) >> 32; /* multiply input with scaler value */ in arm_mat_scale_q31() 175 out = in << kShift; /* apply shifting */ in arm_mat_scale_q31() 176 if (in != (out >> kShift)) /* saturate the results. */ in arm_mat_scale_q31() 177 out = 0x7FFFFFFF ^ (in >> 31); in arm_mat_scale_q31() 180 in = *pIn++; in arm_mat_scale_q31() 181 in = ((q63_t) in * scaleFract) >> 32; in arm_mat_scale_q31() 182 out = in << kShift; in arm_mat_scale_q31() 183 if (in != (out >> kShift)) in arm_mat_scale_q31() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/ComplexMathFunctions/ |
D | arm_cmplx_mult_real_q31.c | 70 q31_t in; in arm_cmplx_mult_real_q31() local 98 in = *pSrcReal++; in arm_cmplx_mult_real_q31() 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() 115 q31_t in; /* Temporary variable */ in arm_cmplx_mult_real_q31() local 127 in = *pSrcReal++; 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() [all …]
|
D | arm_cmplx_conj_q31.c | 63 q31_t in; /* Temporary input variable */ in arm_cmplx_conj_q31() local 96 in = *pSrc++; in arm_cmplx_conj_q31() 97 *pDst++ = __QSUB(0, in); in arm_cmplx_conj_q31() 113 q31_t in; /* Temporary input variable */ in arm_cmplx_conj_q31() local 126 in = *pSrc++; in arm_cmplx_conj_q31() 128 *pDst++ = __QSUB(0, in); in arm_cmplx_conj_q31() 130 *pDst++ = (in == INT32_MIN) ? INT32_MAX : -in; in arm_cmplx_conj_q31() 134 in = *pSrc++; in arm_cmplx_conj_q31() 136 *pDst++ = __QSUB(0, in); in arm_cmplx_conj_q31() 138 *pDst++ = (in == INT32_MIN) ? INT32_MAX : -in; in arm_cmplx_conj_q31() [all …]
|
D | arm_cmplx_mult_real_f32.c | 88 float32_t in; in arm_cmplx_mult_real_f32() local 115 in = *pSrcReal++; in arm_cmplx_mult_real_f32() 117 *pCmplxDst++ = *pSrcCmplx++ * in; in arm_cmplx_mult_real_f32() 118 *pCmplxDst++ = *pSrcCmplx++ * in; in arm_cmplx_mult_real_f32() 133 float32_t in; /* Temporary variable */ in arm_cmplx_mult_real_f32() local 173 in = *pSrcReal++; in arm_cmplx_mult_real_f32() 175 *pCmplxDst++ = *pSrcCmplx++ * in; in arm_cmplx_mult_real_f32() 176 *pCmplxDst++ = *pSrcCmplx++ * in; in arm_cmplx_mult_real_f32() 178 in = *pSrcReal++; in arm_cmplx_mult_real_f32() 179 *pCmplxDst++ = *pSrcCmplx++ * in; in arm_cmplx_mult_real_f32() [all …]
|