/* * FIR rational resampling of complex and real data with real coefficients. * These exist because the pure Haskell implementations are slow. * Uses SIMD instructions for performance. */ #include #include #include #include "common.h" /* * Rational downsampling */ void resampleRR(int buf_size, int coeff_size, int interpolation, int decimation, int filter_offset, float *coeffs, float *in_buf, float *out_buf){ int j, k, l; int input_offset = 0; for(k=0; k