#include #include #include #include #include #include #include "liblte/phy/phy.h" typedef _Complex float cf_t; int main(int argc, char **argv) { uint32_t N = 1000; // Number of sinwave samples interp_t interp; struct timeval t[3]; if (argc < 3) { printf("usage: %s upsampling_rate nof_trials\n", argv[0]); exit(-1); } uint32_t M = atoi(argv[1]); uint32_t nof_trials = atoi(argv[2]); if (interp_init(&interp, LINEAR, N, M)) { exit(-1); } cf_t *in = vec_malloc(N*sizeof(cf_t)); if(!in) { perror("malloc"); exit(-1); } cf_t *out = vec_malloc(M * N*sizeof(cf_t)); if(!out) { perror("malloc"); exit(-1); } cf_t *out_volk = vec_malloc(M * N*sizeof(cf_t)); if(!out_volk) { perror("malloc"); exit(-1); } srand(time(NULL)); for(uint32_t i=0;i