5 void daxpy_ur(
int n,
float da,
float dx[n],
float dy[n])
11 for (i = 0; i < m; i++)
12 dy[i] = dy[i] + da*dx[i];
16 for (i = m; i < n; i = i + 4)
18 dy[i] = dy[i] + da*dx[i];
19 dy[i+1] = dy[i+1] + da*dx[i+1];
20 dy[i+2] = dy[i+2] + da*dx[i+2];
21 dy[i+3] = dy[i+3] + da*dx[i+3];
25 int main(
int argc,
char * argv[])
28 float (*dx)[n],(*dy)[n];
32 fprintf(stderr,
"Usage: %s size data_file\n", argv[0]);
38 posix_memalign(&dx, 32,
sizeof(
float)*n);
39 posix_memalign(&dy, 32,
sizeof(
float)*n);
int main(int argc, char *argv[])
void daxpy_ur(int n, float da, float dx[n], float dy[n])
int fprintf()
test sc_min : ce test s'appelle par : programme fichier1.data fichier2.data ...