DSPF_sp_fir_r2
[Filtering and convolution]

Collaboration diagram for DSPF_sp_fir_r2:


Detailed Description

void DSPF_sp_fir_r2 (const float *x, const float *h, float *restrict r, const int nh, const int nr)


Function Documentation

void DSPF_sp_fir_r2 ( const float *  x,
const float *  h,
float *restrict  r,
const int  nh,
const int  nr 
)

Computes a real FIR filter (direct-form) using coefficients stored in vector h[]. The real data input is stored in vector x[]. The filter output result is stored in vector r[]. The filter calculates nr output samples using nh coefficients. The coefficients are expected to be in reverse order.

Parameters:
x[nr+nh-1] Pointer to input array of size nr+nh-1.
h[nh] Pointer to coefficient array of size nh (in reverse order).
r[nr] Pointer to output array of size nr.
nh Number of coefficents
nr Number of output samples
Algorithm:
DSPF_sp_fir_r2_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 4.
x, h and r are double-word aligned.
Coefficients in array h are expected to be in reverse order.
Implementation Notes:
Interruptibility: The code is interruptible.
Endian Support: The code supports both big and little endian modes.


Copyright 2014, Texas Instruments Incorporated