Changeset 979:b5fb023cdb7b in lemon-0.x for src/benchmark
- Timestamp:
- 11/10/04 22:59:59 (20 years ago)
- Branch:
- default
- Phase:
- public
- Convert:
- svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1367
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/benchmark/bench_tools.h
r921 r979 29 29 30 30 ///\bug 2 is not a prime according to this function! 31 bool isPrim(int n) 31 /// 32 ///\bug This function should go out of header file. I'm making it 33 /// inline for now. 34 inline bool isPrim(int n) 32 35 { 33 36 if(n%2) { … … 40 43 41 44 ///Finds the smallest prime not less then \c n. 42 int nextPrim(int n) 45 46 ///\bug This function should go out of header file. I'm making it 47 /// inline for now. 48 inline int nextPrim(int n) 43 49 { 44 50 for(n+=!(n%2);!isPrim(n);n+=2) ;
Note: See TracChangeset
for help on using the changeset viewer.