source file of the Flower Library
- (c) 1997--2003 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+ (c) 1997--2005 Han-Wen Nienhuys <hanwen@cs.uu.nl>
*/
-#include <math.h>
-#include <stdlib.h>
+
#include "rational.hh"
-#include "string.hh"
+
+#include <cmath>
+#include <cstdlib>
+
#include "string-convert.hh"
#include "libc-extension.hh"
den_= 1;
}
-static
+static inline
int gcd (int a, int b)
{
int t;
return b;
}
-#if 0
-static
-int lcm (int a, int b)
-{
- return abs (a*b / gcd (a,b));
-}
-#endif
void
Rational::set_infinite (int s)