From: fred Date: Sun, 22 Dec 1996 15:57:41 +0000 (+0000) Subject: flower-1.0.17 X-Git-Tag: release/1.5.59~6508 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=60dc0fe06cc7c98b598cd9abcdecabbae9899685;p=lilypond.git flower-1.0.17 --- diff --git a/flower/real.hh b/flower/real.hh index 68e90f9b71..16f52b5092 100644 --- a/flower/real.hh +++ b/flower/real.hh @@ -1,29 +1,16 @@ #ifndef REAL_HH #define REAL_HH -typedef double Real; -inline Real sqr(Real x){ - return x*x; -} -inline Real MIN(Real x, Real y) { - return (x < y)? x : y; -} -inline Real MAX(Real x, Real y) { - return (x > y) ? x : y; -} -inline Real ABS(Real x) -{ - return (x>0)? x:-x; -} -inline -int sgn(Real x) { - if (!x)return 0; - return (x > 0) ?1: -1; -} +#include +#include +#include + +typedef double Real; + inline Real distance(Real x,Real y) { - return ABS(x-y); + return abs(x-y); } #endif