Home
last modified time | relevance | path

Searched refs:out (Results 1 – 25 of 92) sorted by relevance

1234

/hal_nxp-3.5.0/mcux/mcux-sdk/CMSIS/DSP/Source/BasicMathFunctions/
Darm_scale_q31.c114 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 …]
Darm_mult_q31.c108 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 …]
Darm_shift_q31.c131 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/
Darm_fir_sparse_q31.c77 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 …]
Darm_biquad_cascade_df1_q15.c77 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 …]
Darm_biquad_cascade_df1_fast_q15.c72 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/
Dfsl_asrc_edma.c83 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 …]
Dfsl_asrc.c712 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/
Darm_absmax_f32.c133 …float32_t cur_absmax, out; /* Temporary variables to store the output value. *… in arm_absmax_f32() local
140out = *pSrc++; … in arm_absmax_f32()
141out = (out > 0.0f) ? out : -out; … in arm_absmax_f32()
154 if (cur_absmax > out) \ in arm_absmax_f32()
157out = cur_absmax; … in arm_absmax_f32()
163 if (cur_absmax > out) \ in arm_absmax_f32()
165out = cur_absmax; … in arm_absmax_f32()
171 if (cur_absmax > out) \ in arm_absmax_f32()
173out = cur_absmax; … in arm_absmax_f32()
179 if (cur_absmax > out) \ in arm_absmax_f32()
[all …]
Darm_absmax_q15.c111 … q15_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q15() local
118out = *pSrc++; … in arm_absmax_q15()
119out = (out > 0) ? out : (q15_t)__QSUB16(0, out); … in arm_absmax_q15()
132 if (cur_absmax > out) \ in arm_absmax_q15()
135out = cur_absmax; … in arm_absmax_q15()
141 if (cur_absmax > out) \ in arm_absmax_q15()
143out = cur_absmax; … in arm_absmax_q15()
149 if (cur_absmax > out) \ in arm_absmax_q15()
151out = cur_absmax; … in arm_absmax_q15()
157 if (cur_absmax > out) \ in arm_absmax_q15()
[all …]
Darm_absmax_q31.c110 … q31_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q31() local
117out = *pSrc++; … in arm_absmax_q31()
118out = (out > 0) ? out : (q31_t)__QSUB(0, out); … in arm_absmax_q31()
131 if (cur_absmax > out) \ in arm_absmax_q31()
134out = cur_absmax; … in arm_absmax_q31()
140 if (cur_absmax > out) \ in arm_absmax_q31()
142out = cur_absmax; … in arm_absmax_q31()
148 if (cur_absmax > out) \ in arm_absmax_q31()
150out = cur_absmax; … in arm_absmax_q31()
156 if (cur_absmax > out) \ in arm_absmax_q31()
[all …]
Darm_absmax_f16.c147 …float16_t cur_absmax, out; /* Temporary variables to store the output value. *… in arm_absmax_f16() local
154out = *pSrc++; … in arm_absmax_f16()
155out = (out > 0.0f16) ? out : -out; … in arm_absmax_f16()
168 if (cur_absmax > out) \ in arm_absmax_f16()
171out = cur_absmax; … in arm_absmax_f16()
177 if (cur_absmax > out) \ in arm_absmax_f16()
179out = cur_absmax; … in arm_absmax_f16()
185 if (cur_absmax > out) \ in arm_absmax_f16()
187out = cur_absmax; … in arm_absmax_f16()
193 if (cur_absmax > out) \ in arm_absmax_f16()
[all …]
Darm_absmin_f32.c154 …float32_t cur_absmin, out; /* Temporary variables to store the output value. *… in arm_absmin_f32() local
161out = *pSrc++; … in arm_absmin_f32()
162out = (out > 0.0f) ? out : -out; … in arm_absmin_f32()
175 if (cur_absmin < out) \ in arm_absmin_f32()
178out = cur_absmin; … in arm_absmin_f32()
184 if (cur_absmin < out) \ in arm_absmin_f32()
186out = cur_absmin; … in arm_absmin_f32()
192 if (cur_absmin < out) \ in arm_absmin_f32()
194out = cur_absmin; … in arm_absmin_f32()
200 if (cur_absmin < out) \ in arm_absmin_f32()
[all …]
Darm_absmin_f16.c149 …float16_t cur_absmin, out; /* Temporary variables to store the output value. *… in arm_absmin_f16() local
156out = *pSrc++; … in arm_absmin_f16()
157out = (out > 0.0f16) ? out : -out; … in arm_absmin_f16()
170 if (cur_absmin < out) \ in arm_absmin_f16()
173out = cur_absmin; … in arm_absmin_f16()
179 if (cur_absmin < out) \ in arm_absmin_f16()
181out = cur_absmin; … in arm_absmin_f16()
187 if (cur_absmin < out) \ in arm_absmin_f16()
189out = cur_absmin; … in arm_absmin_f16()
195 if (cur_absmin < out) \ in arm_absmin_f16()
[all …]
Darm_absmin_q31.c144 … q31_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q31() local
151out = *pSrc++; … in arm_absmin_q31()
152out = (out > 0) ? out : (q31_t)__QSUB(0, out); … in arm_absmin_q31()
165 if (cur_absmin < out) \ in arm_absmin_q31()
168out = cur_absmin; … in arm_absmin_q31()
174 if (cur_absmin < out) \ in arm_absmin_q31()
176out = cur_absmin; … in arm_absmin_q31()
182 if (cur_absmin < out) \ in arm_absmin_q31()
184out = cur_absmin; … in arm_absmin_q31()
190 if (cur_absmin < out) \ in arm_absmin_q31()
[all …]
Darm_absmin_q15.c143 … q15_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q15() local
150out = *pSrc++; … in arm_absmin_q15()
151out = (out > 0) ? out : (q15_t)__QSUB16(0, out); … in arm_absmin_q15()
164 if (cur_absmin < out) \ in arm_absmin_q15()
167out = cur_absmin; … in arm_absmin_q15()
173 if (cur_absmin < out) \ in arm_absmin_q15()
175out = cur_absmin; … in arm_absmin_q15()
181 if (cur_absmin < out) \ in arm_absmin_q15()
183out = cur_absmin; … in arm_absmin_q15()
189 if (cur_absmin < out) \ in arm_absmin_q15()
[all …]
Darm_max_f32.c152 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 …]
Darm_absmax_q7.c168 … q7_t cur_absmax, out; /* Temporary variables to store the output value. */\ in arm_absmax_q7() local
175out = *pSrc++; … in arm_absmax_q7()
176out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmax_q7()
189 if (cur_absmax > out) \ in arm_absmax_q7()
192out = cur_absmax; … in arm_absmax_q7()
198 if (cur_absmax > out) \ in arm_absmax_q7()
200out = cur_absmax; … in arm_absmax_q7()
206 if (cur_absmax > out) \ in arm_absmax_q7()
208out = cur_absmax; … in arm_absmax_q7()
214 if (cur_absmax > out) \ in arm_absmax_q7()
[all …]
Darm_min_f32.c154 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 …]
Darm_absmin_q7.c197 … q7_t cur_absmin, out; /* Temporary variables to store the output value. */\ in arm_absmin_q7() local
204out = *pSrc++; … in arm_absmin_q7()
205out = (out > 0) ? out : (q7_t)__QSUB8(0, out); … in arm_absmin_q7()
218 if (cur_absmin < out) \ in arm_absmin_q7()
221out = cur_absmin; … in arm_absmin_q7()
227 if (cur_absmin < out) \ in arm_absmin_q7()
229out = cur_absmin; … in arm_absmin_q7()
235 if (cur_absmin < out) \ in arm_absmin_q7()
237out = cur_absmin; … in arm_absmin_q7()
243 if (cur_absmin < out) \ in arm_absmin_q7()
[all …]
Darm_max_q31.c108 …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 …]
Darm_max_q15.c108 …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 …]
Darm_min_q15.c109 …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 …]
Darm_min_q31.c109 …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/
Darm_mat_scale_q31.c144 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 …]

1234