This function implements the FIR filter for complex input data. The filter has nr output samples and nh coefficients. Each array consists of an even and odd term with even terms representing the real part and the odd terms the imaginary part of the element. The coefficients are expected in normal order.
- Parameters
-
x[2*(nr+nh-1)] | Pointer to complex input array. The input data pointer x must point to the (nh)th complex element. |
h[2*nh] | Pointer to complex coefficient array. |
r[2*nr] | Pointer to complex output array. |
nh | Number of complex coefficients in vector h. |
nr | Number of complex output samples to calculate. |
- Algorithm:
- DSPF_sp_fir_cplx_cn.c is the natural C equivalent of the optimized linear assembly code without restrictions. Note that the linear assembly code is optimized and restrictions may apply.
- Assumptions:
- nr is a multiple of 2 and greater than or equal to 2.
nh is a multiple of 2 and greater than or equal to 5.
x, h and r are double-word aligned.
x points to 2*(nh-1)th input element.
- Implementation Notes:
- Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.