Functions
Collaboration diagram for DSPF_sp_fir_r2:

Functions

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

Detailed Description

Function Documentation

◆ DSPF_sp_fir_r2()

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.
nhNumber of coefficents
nrNumber 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 8.
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 2022, Texas Instruments Incorporated