/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 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() 135 *pDst++ = out; /* Store result destination */ in arm_scale_q31() 139 out = in << kShift; in arm_scale_q31() 140 if (in != (out >> kShift)) in arm_scale_q31() 141 out = 0x7FFFFFFF ^ (in >> 31); in arm_scale_q31() 142 *pDst++ = out; in arm_scale_q31() 146 out = in << kShift; in arm_scale_q31() [all …]
|
D | arm_mult_q31.c | 108 q31_t out; /* Temporary output variable */ in arm_mult_q31() local 120 out = ((q63_t) *pSrcA++ * *pSrcB++) >> 32; in arm_mult_q31() 121 out = __SSAT(out, 31); in arm_mult_q31() 122 *pDst++ = out << 1U; in arm_mult_q31() 124 out = ((q63_t) *pSrcA++ * *pSrcB++) >> 32; in arm_mult_q31() 125 out = __SSAT(out, 31); in arm_mult_q31() 126 *pDst++ = out << 1U; in arm_mult_q31() 128 out = ((q63_t) *pSrcA++ * *pSrcB++) >> 32; in arm_mult_q31() 129 out = __SSAT(out, 31); in arm_mult_q31() 130 *pDst++ = out << 1U; in arm_mult_q31() [all …]
|
D | arm_shift_q31.c | 131 q31_t in, out; /* Temporary variables */ in arm_shift_q31() local 145 out = in << shiftBits; in arm_shift_q31() 146 if (in != (out >> shiftBits)) in arm_shift_q31() 147 out = 0x7FFFFFFF ^ (in >> 31); in arm_shift_q31() 148 *pDst++ = out; in arm_shift_q31() 151 out = in << shiftBits; in arm_shift_q31() 152 if (in != (out >> shiftBits)) in arm_shift_q31() 153 out = 0x7FFFFFFF ^ (in >> 31); in arm_shift_q31() 154 *pDst++ = out; in arm_shift_q31() 157 out = in << shiftBits; in arm_shift_q31() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/FilteringFunctions/ |
D | arm_fir_sparse_q31.c | 77 q63_t out; /* Temporary output variable */ in arm_fir_sparse_q31() local 187 out = *pOut; in arm_fir_sparse_q31() 188 out += ((q63_t) *px++ * coeff) >> 32; in arm_fir_sparse_q31() 189 *pOut++ = (q31_t) (out); in arm_fir_sparse_q31() 191 out = *pOut; in arm_fir_sparse_q31() 192 out += ((q63_t) *px++ * coeff) >> 32; in arm_fir_sparse_q31() 193 *pOut++ = (q31_t) (out); in arm_fir_sparse_q31() 195 out = *pOut; in arm_fir_sparse_q31() 196 out += ((q63_t) *px++ * coeff) >> 32; in arm_fir_sparse_q31() 197 *pOut++ = (q31_t) (out); in arm_fir_sparse_q31() [all …]
|
D | arm_biquad_cascade_df1_q15.c | 77 q31_t out, out1; in arm_biquad_cascade_df1_q15() local 127 out = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() 129 inVec0[7] = out; in arm_biquad_cascade_df1_q15() 131 *pOut++ = (q15_t) out; in arm_biquad_cascade_df1_q15() 141 out = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() 157 inVec0[7] = out; in arm_biquad_cascade_df1_q15() 161 *pOut++ = (q15_t) out; in arm_biquad_cascade_df1_q15() 182 out = (q31_t) ((acc >> 32) & 0xffffffff); in arm_biquad_cascade_df1_q15() 185 *pOut++ = (q15_t) out; in arm_biquad_cascade_df1_q15() 188 inVec0[7] = out; in arm_biquad_cascade_df1_q15() [all …]
|
D | arm_biquad_cascade_df1_fast_q15.c | 72 q31_t out; /* Temporary variable to hold output value */ in arm_biquad_cascade_df1_fast_q15() local 115 out = __SMUAD(b0, in); in arm_biquad_cascade_df1_fast_q15() 117 acc = __SMLAD(b1, state_in, out); in arm_biquad_cascade_df1_fast_q15() 122 out = __SSAT((acc >> shift), 16); in arm_biquad_cascade_df1_fast_q15() 135 state_out = __PKHBT(out, state_out, 16); in arm_biquad_cascade_df1_fast_q15() 138 state_out = __PKHBT(state_out >> 16, (out), 16); in arm_biquad_cascade_df1_fast_q15() 142 out = __SMUADX(b0, in); in arm_biquad_cascade_df1_fast_q15() 144 acc = __SMLAD(b1, state_in, out); in arm_biquad_cascade_df1_fast_q15() 149 out = __SSAT((acc >> shift), 16); in arm_biquad_cascade_df1_fast_q15() 153 write_q15x2_ia (&pOut, __PKHBT(state_out, out, 16)); in arm_biquad_cascade_df1_fast_q15() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/drivers/asrc/ |
D | fsl_asrc_edma.c | 83 asrc_out_edma_handle_t *asrcOutHandle = &(privHandle->handle->out); in ASRC_OutEDMACallback() 177 (void)memset(&handle->out, 0, sizeof(asrc_out_edma_handle_t)); in ASRC_TransferOutCreateHandleEDMA() 179 handle->out.outDmaHandle = outDmaHandle; in ASRC_TransferOutCreateHandleEDMA() 184 handle->out.state = kStatus_ASRCIdle; in ASRC_TransferOutCreateHandleEDMA() 186 handle->out.peripheralConfig = periphConfig; in ASRC_TransferOutCreateHandleEDMA() 192 …EDMA_InstallTCDMemory(outDmaHandle, (edma_tcd_t *)(STCD_ADDR(handle->out.tcd)), ASRC_XFER_OUT_QUEU… in ASRC_TransferOutCreateHandleEDMA() 222 …handle->out.fifoThreshold = (asrcConfig->outFifoThreshold) * (uint32_t)asrcConfig->audioDataChanne… in ASRC_TransferSetChannelPairConfigEDMA() 223 …(void)ASRC_MapSamplesWidth(base, handle->channelPair, &handle->in.sampleWidth, &handle->out.sample… in ASRC_TransferSetChannelPairConfigEDMA() 246 return outputSize - outputSize % handle->out.fifoThreshold; in ASRC_GetOutSamplesSizeEDMA() 261 if (handle->out.asrcQueue[handle->out.queueUser] != NULL) in ASRC_TransferOutSubmitEDMA() [all …]
|
D | fsl_asrc.c | 712 handle->out.fifoThreshold = config->outFifoThreshold * (uint32_t)config->audioDataChannels; in ASRC_TransferSetChannelPairConfig() 722 …ASRC_MapSamplesWidth(base, handle->channelPair, &handle->in.sampleWidth, &handle->out.sampleWidth); in ASRC_TransferSetChannelPairConfig() 784 handle->out.callback = outCallback; in ASRC_TransferCreateHandle() 811 …if ((handle->in.asrcQueue[handle->in.queueUser] != NULL) || (handle->out.asrcQueue[handle->out.que… in ASRC_TransferNonBlocking() 821 handle->out.asrcQueue[handle->out.queueUser] = xfer->outData; in ASRC_TransferNonBlocking() 822 … handle->out.transferSamples[handle->out.queueUser] = xfer->outDataSize / handle->out.sampleWidth; in ASRC_TransferNonBlocking() 823 …handle->out.queueUser = (handle->out.queueUser + 1U) % ASRC_XFER_QUEU… in ASRC_TransferNonBlocking() 860 *count = handle->out.transferSamples[handle->out.queueDriver]; in ASRC_TransferGetConvertedCount() 886 handle->out.queueDriver = 0; in ASRC_TransferAbortConvert() 887 handle->out.queueUser = 0; in ASRC_TransferAbortConvert() [all …]
|
/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/StatisticsFunctions/ |
D | arm_absmax_f32.c | 133 …float32_t cur_absmax, out; /* Temporary variables to store the output value. *… in arm_absmax_f32() local 140 …out = *pSrc++; … in arm_absmax_f32() 141 …out = (out > 0.0f) ? out : -out; … in arm_absmax_f32() 154 if (cur_absmax > out) \ in arm_absmax_f32() 157 …out = cur_absmax; … in arm_absmax_f32() 163 if (cur_absmax > out) \ in arm_absmax_f32() 165 …out = cur_absmax; … in arm_absmax_f32() 171 if (cur_absmax > out) \ in arm_absmax_f32() 173 …out = cur_absmax; … in arm_absmax_f32() 179 if (cur_absmax > out) \ in arm_absmax_f32() [all …]
|
D | arm_absmax_q15.c | 111 … q15_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q15() local 118 …out = *pSrc++; … in arm_absmax_q15() 119 …out = (out > 0) ? out : (q15_t)__QSUB16(0, out); … in arm_absmax_q15() 132 if (cur_absmax > out) \ in arm_absmax_q15() 135 …out = cur_absmax; … in arm_absmax_q15() 141 if (cur_absmax > out) \ in arm_absmax_q15() 143 …out = cur_absmax; … in arm_absmax_q15() 149 if (cur_absmax > out) \ in arm_absmax_q15() 151 …out = cur_absmax; … in arm_absmax_q15() 157 if (cur_absmax > out) \ in arm_absmax_q15() [all …]
|
D | arm_absmax_q31.c | 110 … q31_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q31() local 117 …out = *pSrc++; … in arm_absmax_q31() 118 …out = (out > 0) ? out : (q31_t)__QSUB(0, out); … in arm_absmax_q31() 131 if (cur_absmax > out) \ in arm_absmax_q31() 134 …out = cur_absmax; … in arm_absmax_q31() 140 if (cur_absmax > out) \ in arm_absmax_q31() 142 …out = cur_absmax; … in arm_absmax_q31() 148 if (cur_absmax > out) \ in arm_absmax_q31() 150 …out = cur_absmax; … in arm_absmax_q31() 156 if (cur_absmax > out) \ in arm_absmax_q31() [all …]
|
D | arm_absmax_f16.c | 147 …float16_t cur_absmax, out; /* Temporary variables to store the output value. *… in arm_absmax_f16() local 154 …out = *pSrc++; … in arm_absmax_f16() 155 …out = (out > 0.0f16) ? out : -out; … in arm_absmax_f16() 168 if (cur_absmax > out) \ in arm_absmax_f16() 171 …out = cur_absmax; … in arm_absmax_f16() 177 if (cur_absmax > out) \ in arm_absmax_f16() 179 …out = cur_absmax; … in arm_absmax_f16() 185 if (cur_absmax > out) \ in arm_absmax_f16() 187 …out = cur_absmax; … in arm_absmax_f16() 193 if (cur_absmax > out) \ in arm_absmax_f16() [all …]
|
D | arm_absmin_f32.c | 154 …float32_t cur_absmin, out; /* Temporary variables to store the output value. *… in arm_absmin_f32() local 161 …out = *pSrc++; … in arm_absmin_f32() 162 …out = (out > 0.0f) ? out : -out; … in arm_absmin_f32() 175 if (cur_absmin < out) \ in arm_absmin_f32() 178 …out = cur_absmin; … in arm_absmin_f32() 184 if (cur_absmin < out) \ in arm_absmin_f32() 186 …out = cur_absmin; … in arm_absmin_f32() 192 if (cur_absmin < out) \ in arm_absmin_f32() 194 …out = cur_absmin; … in arm_absmin_f32() 200 if (cur_absmin < out) \ in arm_absmin_f32() [all …]
|
D | arm_absmin_f16.c | 149 …float16_t cur_absmin, out; /* Temporary variables to store the output value. *… in arm_absmin_f16() local 156 …out = *pSrc++; … in arm_absmin_f16() 157 …out = (out > 0.0f16) ? out : -out; … in arm_absmin_f16() 170 if (cur_absmin < out) \ in arm_absmin_f16() 173 …out = cur_absmin; … in arm_absmin_f16() 179 if (cur_absmin < out) \ in arm_absmin_f16() 181 …out = cur_absmin; … in arm_absmin_f16() 187 if (cur_absmin < out) \ in arm_absmin_f16() 189 …out = cur_absmin; … in arm_absmin_f16() 195 if (cur_absmin < out) \ in arm_absmin_f16() [all …]
|
D | arm_absmin_q31.c | 144 … q31_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q31() local 151 …out = *pSrc++; … in arm_absmin_q31() 152 …out = (out > 0) ? out : (q31_t)__QSUB(0, out); … in arm_absmin_q31() 165 if (cur_absmin < out) \ in arm_absmin_q31() 168 …out = cur_absmin; … in arm_absmin_q31() 174 if (cur_absmin < out) \ in arm_absmin_q31() 176 …out = cur_absmin; … in arm_absmin_q31() 182 if (cur_absmin < out) \ in arm_absmin_q31() 184 …out = cur_absmin; … in arm_absmin_q31() 190 if (cur_absmin < out) \ in arm_absmin_q31() [all …]
|
D | arm_absmin_q15.c | 143 … q15_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q15() local 150 …out = *pSrc++; … in arm_absmin_q15() 151 …out = (out > 0) ? out : (q15_t)__QSUB16(0, out); … in arm_absmin_q15() 164 if (cur_absmin < out) \ in arm_absmin_q15() 167 …out = cur_absmin; … in arm_absmin_q15() 173 if (cur_absmin < out) \ in arm_absmin_q15() 175 …out = cur_absmin; … in arm_absmin_q15() 181 if (cur_absmin < out) \ in arm_absmin_q15() 183 …out = cur_absmin; … in arm_absmin_q15() 189 if (cur_absmin < out) \ in arm_absmin_q15() [all …]
|
D | arm_max_f32.c | 152 float32_t maxVal1, out; /* Temporary variables to store the output value. */ in arm_max_f32() local 180 out = *pSrc++; in arm_max_f32() 190 if (out < maxVal1) in arm_max_f32() 193 out = maxVal1; in arm_max_f32() 226 out = vget_lane_f32(outV2, 0); in arm_max_f32() 228 idxV = vceqq_f32(outV, vdupq_n_f32(out)); in arm_max_f32() 244 if (out < maxVal1) in arm_max_f32() 247 out = maxVal1; in arm_max_f32() 259 *pResult = out; in arm_max_f32() 269 …float32_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_f32() local [all …]
|
D | arm_absmax_q7.c | 168 … q7_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q7() local 175 …out = *pSrc++; … in arm_absmax_q7() 176 …out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmax_q7() 189 if (cur_absmax > out) \ in arm_absmax_q7() 192 …out = cur_absmax; … in arm_absmax_q7() 198 if (cur_absmax > out) \ in arm_absmax_q7() 200 …out = cur_absmax; … in arm_absmax_q7() 206 if (cur_absmax > out) \ in arm_absmax_q7() 208 …out = cur_absmax; … in arm_absmax_q7() 214 if (cur_absmax > out) \ in arm_absmax_q7() [all …]
|
D | arm_min_f32.c | 154 float32_t maxVal1, out; /* Temporary variables to store the output value. */ in arm_min_f32() local 180 out = *pSrc++; in arm_min_f32() 190 if (out > maxVal1) in arm_min_f32() 193 out = maxVal1; in arm_min_f32() 226 out = vget_lane_f32(outV2,0); in arm_min_f32() 228 idxV = vceqq_f32(outV, vdupq_n_f32(out)); in arm_min_f32() 244 if (out > maxVal1) in arm_min_f32() 247 out = maxVal1; in arm_min_f32() 257 *pResult = out; in arm_min_f32() 267 …float32_t minVal, out; /* Temporary variables to store the output value. */ in arm_min_f32() local [all …]
|
D | arm_absmin_q7.c | 197 … q7_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q7() local 204 …out = *pSrc++; … in arm_absmin_q7() 205 …out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmin_q7() 218 if (cur_absmin < out) \ in arm_absmin_q7() 221 …out = cur_absmin; … in arm_absmin_q7() 227 if (cur_absmin < out) \ in arm_absmin_q7() 229 …out = cur_absmin; … in arm_absmin_q7() 235 if (cur_absmin < out) \ in arm_absmin_q7() 237 …out = cur_absmin; … in arm_absmin_q7() 243 if (cur_absmin < out) \ in arm_absmin_q7() [all …]
|
D | arm_max_q31.c | 108 …q31_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_q31() local 118 out = *pSrc++; in arm_max_q31() 133 if (out < maxVal) in arm_max_q31() 136 out = maxVal; in arm_max_q31() 141 if (out < maxVal) in arm_max_q31() 143 out = maxVal; in arm_max_q31() 148 if (out < maxVal) in arm_max_q31() 150 out = maxVal; in arm_max_q31() 155 if (out < maxVal) in arm_max_q31() 157 out = maxVal; in arm_max_q31() [all …]
|
D | arm_max_q15.c | 108 …q15_t maxVal, out; /* Temporary variables to store the output value. */ in arm_max_q15() local 118 out = *pSrc++; in arm_max_q15() 133 if (out < maxVal) in arm_max_q15() 136 out = maxVal; in arm_max_q15() 141 if (out < maxVal) in arm_max_q15() 143 out = maxVal; in arm_max_q15() 148 if (out < maxVal) in arm_max_q15() 150 out = maxVal; in arm_max_q15() 155 if (out < maxVal) in arm_max_q15() 157 out = maxVal; in arm_max_q15() [all …]
|
D | arm_min_q15.c | 109 …q15_t minVal, out; /* Temporary variables to store the output value. */ in arm_min_q15() local 119 out = *pSrc++; in arm_min_q15() 134 if (out > minVal) in arm_min_q15() 137 out = minVal; in arm_min_q15() 142 if (out > minVal) in arm_min_q15() 144 out = minVal; in arm_min_q15() 149 if (out > minVal) in arm_min_q15() 151 out = minVal; in arm_min_q15() 156 if (out > minVal) in arm_min_q15() 158 out = minVal; in arm_min_q15() [all …]
|
D | arm_min_q31.c | 109 …q31_t minVal, out; /* Temporary variables to store the output value. */ in arm_min_q31() local 119 out = *pSrc++; in arm_min_q31() 134 if (out > minVal) in arm_min_q31() 137 out = minVal; in arm_min_q31() 142 if (out > minVal) in arm_min_q31() 144 out = minVal; in arm_min_q31() 149 if (out > minVal) in arm_min_q31() 151 out = minVal; in arm_min_q31() 156 if (out > minVal) in arm_min_q31() 158 out = minVal; in arm_min_q31() [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 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() 178 *pOut++ = out; /* Store result destination */ in arm_mat_scale_q31() 182 out = in << kShift; in arm_mat_scale_q31() 183 if (in != (out >> kShift)) in arm_mat_scale_q31() 184 out = 0x7FFFFFFF ^ (in >> 31); in arm_mat_scale_q31() 185 *pOut++ = out; in arm_mat_scale_q31() 189 out = in << kShift; in arm_mat_scale_q31() [all …]
|