6 #include <cl_complex.h>
7 #include <cl_complex_io.h>
12 #include <cl_timing.h>
14 int main (int argc, char * argv[])
17 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
18 repetitions = atoi(argv[2]);
23 uintL len = atoi(argv[1]);
25 cl_LF one = cl_I_to_LF(1,len);
26 cl_F x = scale_float(random_F(one),-1);
29 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
32 ln(cl_I_to_LF(1000,len+10)); // fill cache
34 for (int rep = repetitions; rep > 0; rep--)
39 for (int rep = repetitions; rep > 0; rep--)
40 { y = ln((1+x)/(1-x))/2; }