diff -r 175cf8c3a994 -r b5fb023cdb7b src/benchmark/bench_tools.h --- a/src/benchmark/bench_tools.h Wed Nov 10 21:42:28 2004 +0000 +++ b/src/benchmark/bench_tools.h Wed Nov 10 21:59:59 2004 +0000 @@ -28,7 +28,10 @@ ///A primitive primtest ///\bug 2 is not a prime according to this function! -bool isPrim(int n) +/// +///\bug This function should go out of header file. I'm making it +/// inline for now. +inline bool isPrim(int n) { if(n%2) { for(int k=3;n/k>=k;k+=2) @@ -39,7 +42,10 @@ } ///Finds the smallest prime not less then \c n. -int nextPrim(int n) + +///\bug This function should go out of header file. I'm making it +/// inline for now. +inline int nextPrim(int n) { for(n+=!(n%2);!isPrim(n);n+=2) ; return n;