6 #define EPSILON ((double)1.0e-6) 98 double real_diff, img_diff;
101 real_diff = data->
real[i] - ref->
real[i];
102 img_diff = data->
img[i] - ref->
img[i];
void data_to_input(int fd, void *vdata)
int check_data(void *vdata, void *vref)
double real_twid[FFT_SIZE/2]
double img_twid[FFT_SIZE/2]
int write_double_array(int fd, double *arr, int n)
void data_to_output(int fd, void *vdata)
void fft(double real[FFT_SIZE], double img[FFT_SIZE], double real_twid[FFT_SIZE/2], double img_twid[FFT_SIZE/2])
int write_section_header(int fd)
void output_to_data(int fd, void *vdata)
void input_to_data(int fd, void *vdata)
char * find_section_start(char *s, int n)
int parse_double_array(char *s, double *arr, int n)
void run_benchmark(void *vargs)