forked from parallella/pal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
p_firsym.c
29 lines (25 loc) · 833 Bytes
/
p_firsym.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#include <pal.h>
/**
*
* Computes a FIR filter (direct-form) with 'h' symmetric coefficients
* The filter is assumed to have a symmetric impulse response. The real input
* data is stored in vector x. The filter output result is stored in vector r.
* The function maintains the array 'dbuf' containing the previous delayed
* input values to allow consecutive processing of input data blocks.
* @param x Pointer to input vector of 'n' elements
*
* @param h Pointer to first half of symmetric filter coefficients.
*
* @param r Pointer to result vector
*
* @param nx The number of input (and output) samples
*
* @param nh The number of coefficients of the filter.
*
* @return None
*
*/
void p_firsym_f32(const float *x, const float *h, float *r, int nx, int nh)
{
/*PLACE CODE HERE*/
}