forked from parallella/pal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathp_firint.c
35 lines (31 loc) · 980 Bytes
/
p_firint.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
30
31
32
33
34
35
#include <pal.h>
/**
* Computes a interpolating FIR filter (direct-form) on input data 'x' using
* coefficient stored in 'h' and places result in 'r'. This function
* retains the address of the delay filter memory containing the previous
* delayed values to allow consecutive processing of blocks.
*
* @param x Pointer to input vector of 'nx' elements
*
* @param h Pointer to 'nh' filter coefficients
*
* @param r Output vector of size 'nx*ifactor'
*
* @param nx The number of input samples
* @param nh The number of coefficients of the filter
*
* @param ifactor Interpolation factor. 'ifactor' output samples produced
* for every 1 input sample
*
* @param p Number of processor to use (task parallelism)
*
* @param team Team to work with
*
* @return None
*
*/
void p_firint_f32(float *x, float *h, float *r, int nx, int nh, int ifactor,
int p, p_team_t team)
{
/*PLACE CODE HERE*/
}