1 #include <cln/number.h>
4 #include <cln/float_io.h>
5 #include <cln/lfloat.h>
6 #include "float/lfloat/cl_LF.h"
8 #include <cln/random.h>
11 #include <cln/timing.h>
16 int main (int argc, char * argv[])
19 if ((argc >= 3) && !strcmp(argv[1],"-r")) {
20 repetitions = atoi(argv[2]);
25 uintL len = atoi(argv[1]);
27 cl_LF one = cl_I_to_LF(1,len);
28 cl_F x = scale_float(random_F(one),-1);
31 cl_F x = sqrt(cl_I_to_LF(2,len))-1;
34 extern int cl_exp_algo;
35 y = exp(x); // fill cache
39 for (int rep = repetitions; rep > 0; rep--)
46 for (int rep = repetitions; rep > 0; rep--)