From 8dfa19cd65909313b21747bd23881ea1540e24ee Mon Sep 17 00:00:00 2001 From: Alexei Sheplyakov Date: Sat, 23 Aug 2008 22:22:56 +0400 Subject: [PATCH] tests: #include and using namespace std; for std::cout and std::endl Otherwise timing programs fail to compile. --- tests/main.cc | 3 +++ tests/timeLFRAmul.cc | 2 ++ tests/timeLFatan.cc | 2 ++ tests/timeLFatanh.cc | 2 ++ tests/timeLFcos.cc | 2 ++ tests/timeLFcosh.cc | 2 ++ tests/timeLFexp.cc | 3 +++ tests/timeLFln.cc | 3 +++ tests/timeLFsin.cc | 3 +++ tests/timeLFsinh.cc | 2 ++ tests/timeLFsqrt.cc | 2 ++ tests/timeMImisc5.cc | 2 ++ tests/timeRALFdiv.cc | 2 ++ tests/timeRAtoLF.cc | 2 ++ tests/timeUPMImul.cc | 2 ++ tests/timecatalan.cc | 2 ++ tests/timesqrtmodp.cc | 2 ++ tests/timezeta3.cc | 2 ++ 18 files changed, 40 insertions(+) diff --git a/tests/main.cc b/tests/main.cc index 8157200..a877e77 100644 --- a/tests/main.cc +++ b/tests/main.cc @@ -11,6 +11,9 @@ //#include //#include #include +using namespace cln; +#include +using namespace std; #define DUMP(expr) \ fprint(cout, #expr" = "); fprint(cout, expr); fprint(cout, "\n"); diff --git a/tests/timeLFRAmul.cc b/tests/timeLFRAmul.cc index 3db524b..095e15f 100644 --- a/tests/timeLFRAmul.cc +++ b/tests/timeLFRAmul.cc @@ -9,7 +9,9 @@ #include #include #include +#include using namespace cln; +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFatan.cc b/tests/timeLFatan.cc index 481d164..914ba53 100644 --- a/tests/timeLFatan.cc +++ b/tests/timeLFatan.cc @@ -10,6 +10,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFatanh.cc b/tests/timeLFatanh.cc index ea1551a..6c7d7e6 100644 --- a/tests/timeLFatanh.cc +++ b/tests/timeLFatanh.cc @@ -11,6 +11,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFcos.cc b/tests/timeLFcos.cc index 7d5ac8f..a64b53e 100644 --- a/tests/timeLFcos.cc +++ b/tests/timeLFcos.cc @@ -10,6 +10,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFcosh.cc b/tests/timeLFcosh.cc index 3d6e178..32954db 100644 --- a/tests/timeLFcosh.cc +++ b/tests/timeLFcosh.cc @@ -10,6 +10,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFexp.cc b/tests/timeLFexp.cc index f060ac6..63cc21b 100644 --- a/tests/timeLFexp.cc +++ b/tests/timeLFexp.cc @@ -9,6 +9,9 @@ #include #include #include +using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFln.cc b/tests/timeLFln.cc index f59eadc..2a2bd16 100644 --- a/tests/timeLFln.cc +++ b/tests/timeLFln.cc @@ -9,6 +9,9 @@ #include #include #include +using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFsin.cc b/tests/timeLFsin.cc index 01cc741..6775103 100644 --- a/tests/timeLFsin.cc +++ b/tests/timeLFsin.cc @@ -10,6 +10,9 @@ #include #include using namespace cln; +#include +using namespace std; + int main (int argc, char * argv[]) { diff --git a/tests/timeLFsinh.cc b/tests/timeLFsinh.cc index a95406b..523a222 100644 --- a/tests/timeLFsinh.cc +++ b/tests/timeLFsinh.cc @@ -10,6 +10,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeLFsqrt.cc b/tests/timeLFsqrt.cc index 02722cd..c57f172 100644 --- a/tests/timeLFsqrt.cc +++ b/tests/timeLFsqrt.cc @@ -9,7 +9,9 @@ #include #include #include +#include using namespace cln; +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeMImisc5.cc b/tests/timeMImisc5.cc index 45baa0b..f613051 100644 --- a/tests/timeMImisc5.cc +++ b/tests/timeMImisc5.cc @@ -6,6 +6,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeRALFdiv.cc b/tests/timeRALFdiv.cc index ec990bc..e9d211e 100644 --- a/tests/timeRALFdiv.cc +++ b/tests/timeRALFdiv.cc @@ -9,7 +9,9 @@ #include #include #include +#include using namespace cln; +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeRAtoLF.cc b/tests/timeRAtoLF.cc index 2d56994..92486c1 100644 --- a/tests/timeRAtoLF.cc +++ b/tests/timeRAtoLF.cc @@ -8,7 +8,9 @@ #include #include #include +#include using namespace cln; +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timeUPMImul.cc b/tests/timeUPMImul.cc index 272d618..96878b2 100644 --- a/tests/timeUPMImul.cc +++ b/tests/timeUPMImul.cc @@ -7,6 +7,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timecatalan.cc b/tests/timecatalan.cc index fbb24ad..4ddb6be 100644 --- a/tests/timecatalan.cc +++ b/tests/timecatalan.cc @@ -7,7 +7,9 @@ #include #include #include "float/lfloat/cl_LF.h" +#include using namespace cln; +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timesqrtmodp.cc b/tests/timesqrtmodp.cc index c30b7bb..1628541 100644 --- a/tests/timesqrtmodp.cc +++ b/tests/timesqrtmodp.cc @@ -8,6 +8,8 @@ #include #include using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) { diff --git a/tests/timezeta3.cc b/tests/timezeta3.cc index eae434f..898b958 100644 --- a/tests/timezeta3.cc +++ b/tests/timezeta3.cc @@ -7,6 +7,8 @@ #include #include "float/lfloat/cl_LF.h" using namespace cln; +#include +using namespace std; int main (int argc, char * argv[]) {