1.1 --- a/src/benchmark/bench_tools.h Wed Nov 10 21:42:28 2004 +0000
1.2 +++ b/src/benchmark/bench_tools.h Wed Nov 10 21:59:59 2004 +0000
1.3 @@ -28,7 +28,10 @@
1.4 ///A primitive primtest
1.5
1.6 ///\bug 2 is not a prime according to this function!
1.7 -bool isPrim(int n)
1.8 +///
1.9 +///\bug This function should go out of header file. I'm making it
1.10 +/// inline for now.
1.11 +inline bool isPrim(int n)
1.12 {
1.13 if(n%2) {
1.14 for(int k=3;n/k>=k;k+=2)
1.15 @@ -39,7 +42,10 @@
1.16 }
1.17
1.18 ///Finds the smallest prime not less then \c n.
1.19 -int nextPrim(int n)
1.20 +
1.21 +///\bug This function should go out of header file. I'm making it
1.22 +/// inline for now.
1.23 +inline int nextPrim(int n)
1.24 {
1.25 for(n+=!(n%2);!isPrim(n);n+=2) ;
1.26 return n;