From ad5ad846d8089cfc50d9e791cef27f79a2929074 Mon Sep 17 00:00:00 2001 From: Ingo Date: Fri, 8 Mar 2013 15:16:16 +0100 Subject: [PATCH] Some small changes to prepare following patches --- rtengine/sleef.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/rtengine/sleef.c b/rtengine/sleef.c index 7d486bd4a..6d08db650 100644 --- a/rtengine/sleef.c +++ b/rtengine/sleef.c @@ -1,3 +1,6 @@ +#ifndef _SLEEFC_ +#define _SLEEFC_ + #include #include #include @@ -72,7 +75,7 @@ __inline int ilogbp1(double d) { __inline int xilogb(double d) { int e = ilogbp1(xfabs(d)) - 1; - e = d == 0 ? -2147483648 : e; + e = d == 0 ? -2147483648.0 : e; e = d == INFINITY || d == -INFINITY ? 2147483647 : e; return e; } @@ -1209,3 +1212,4 @@ __inline float xexpf(float d) { // if (xisminff(d)) u = 0; return u; } +#endif