4 #include <cl_float_io.h>
11 #include <cl_timing.h>
13 int main (int argc, char * argv[])
16 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
17 repetitions = atoi(argv[2]);
22 extern int cl_sinh_algo;
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 y = exp(x); // fill cache
36 for (int rep = repetitions; rep > 0; rep--)
43 for (int rep = repetitions; rep > 0; rep--)
48 for (int rep = repetitions; rep > 0; rep--)
49 { y = exp(x); y = (y-recip(y))/2; }