martaczaska

ZPS_2_1

May 16th, 2020
1,288
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.33 KB | None | 0 0
  1. void blockfir(short* input, const short* filter, short* output, int numSamples, int numFilter){
  2.     int i;
  3.     int j;
  4.  
  5.     for (i = 0; i < N; i++){
  6.         bufor[i] = 0;
  7.     }
  8.  
  9.     for(j = 0; j < N; j++){
  10.         long y = 0;
  11.        
  12.             for(i = 0; i < N; i++){
  13.                 y = _smac(y, input[i], filter[i]);
  14.             }
  15.  
  16.         output[j] = (short)(_sround(y) >> 16);
  17.     }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment