/* * Conversion of byte IQ data from RTLSDR device to complex floats. * These exist because the pure Haskell implementations are slow. * Uses SIMD instructions for performance. */ #include #include #include /* * Conversion */ void convertC(int num, uint8_t *in, float *out){ int i; for(i=0; i 2047) res = 2047; if(res < -2048) res = -2048; out[i] = res; } }