X-Git-Url: https://ginac.de/CLN/cln.git//cln.git?a=blobdiff_plain;f=tests%2Ftimepi.cc;h=3889f64e157743084806852dd949bc89910cce80;hb=684ae5ac173cba2b80173348b225ba4dc2ece6a4;hp=f2bdcbeb4dfbda07718b703571ea8bda05ca8501;hpb=dd9e0f894eec7e2a8cf85078330ddc0a6639090b;p=cln.git diff --git a/tests/timepi.cc b/tests/timepi.cc index f2bdcbe..3889f64 100644 --- a/tests/timepi.cc +++ b/tests/timepi.cc @@ -1,12 +1,15 @@ -#include -#include -#include -#include -#include -#include -#include -#include -#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +using namespace std; +using namespace cln; int main (int argc, char * argv[]) { @@ -47,11 +50,11 @@ int main (int argc, char * argv[]) #else // Here the argument is N *decimal* digits, not N*32 bits! int n = atoi(argv[1]); - cl_float_format_t prec = cl_float_format(n); + float_format_t prec = float_format(n); cl_F p; - fprint(cl_stderr, "Computing pi\n"); - { CL_TIMING; p = cl_pi(prec); } - fprint(cl_stderr, "Converting pi to decimal\n"); + cerr << "Computing pi" << endl; + { CL_TIMING; p = pi(prec); } + cerr << "Converting pi to decimal" << endl; { CL_TIMING; cout << p << endl << endl; } #endif }