12 #ifdef __PYPS_SAC_VALIDATE
13 #define _print_array(name, ptr, n, format, stype) \
14 fwrite(ptr, n, stype, stdout); \
16 #elif defined(__PYPS_SAC_BENCHMARK)
17 #define _print_array(name, ptr, n, format, stype)
19 #define _print_array(name, ptr, n, format, stype) \
22 printf("%s :\n", name); \
25 strncpy(formatnl, format, 7); \
26 strncat(formatnl, "\n", 2); \
27 for (i = 0; i < n; i++) \
28 printf(formatnl, *(ptr+i)); \
43 perror(
"open data file");
74 void print_array_cplx(
const char* name,
const float complex* arr,
const unsigned int n)
79 printf(
"%f %f\n",crealf(arr[i]),cimagf(arr[i]));
91 fprintf(stderr,
"Data file must be initialized !\n");
99 perror(
"read data file");
155 fprintf(stderr,
"Usage: %s kernel_size data_file\n", argv[0]);
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...