DSP_fir_cplx_hM4X4
[Filtering and convolution]

Collaboration diagram for DSP_fir_cplx_hM4X4:


Detailed Description

void DSP_fir_cplx_hM4X4 (const short *restrict x, const short *restrict h, short *restrict r, int nh, int nr)


Function Documentation

void DSP_fir_cplx_hM4X4 ( const short *restrict  x,
const short *restrict  h,
short *restrict  r,
int  nh,
int  nr 
)

This complex FIR computes nr complex output samples using nh complex coefficients. It operates on 16-bit data with a 32-bit accumulate. Each array consists of an even and odd term with even terms representing the real part of the element and the odd terms the imaginary part. The pointer to input array x must point to the (nh)th complex sample, i.e. element 2*(nh-1), upon entry to the function. The coefficients are expected in normal order.

Parameters:
x Complex input data. x must point to x[2*(nh-1)].
h Complex coefficients (in normal order). h must point to h[2*nh].
r Complex output data. r must point to r[2*nr].
nh Number of complex coefficients.
nr Number of complex output samples.
Algorithm:
DSP_fir_cplx_hM4X4_cn.c is the natural C equivalent of the optimized intrinsic C code without restrictions. Note that the intrinsic C code is optimized and restrictions may apply.
Assumptions:
Arrays x, h, and r do not overlap
Arrays h and r must be aligned on double word boundaries
nr >= 8; nr % 4 == 0
nh >= 8; nh % 4 == 0
Implementation Notes:
Endian Support: The code supports both big and little endian modes. Interruptibility: The code is interruptible


Copyright 2014, Texas Instruments Incorporated