]> git.donarmstrong.com Git - lilypond.git/commitdiff
flower-1.0.17
authorfred <fred>
Sun, 22 Dec 1996 15:57:41 +0000 (15:57 +0000)
committerfred <fred>
Sun, 22 Dec 1996 15:57:41 +0000 (15:57 +0000)
flower/real.hh

index 68e90f9b71b2b6fad9a5c2907674ebf0b74346e9..16f52b509269e7dc084c7b53889d6ba5a5990400 100644 (file)
@@ -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 <builtin.h>
+#include <minmax.h>
+#include <std/cmath.h>
+
+typedef double Real;
+
 inline Real
 distance(Real x,Real y)
 {
-    return ABS(x-y);
+    return abs(x-y);
 }
 #endif