From 127bbb4fe3f68ad22d400dd4d7dcf14f9104bc81 Mon Sep 17 00:00:00 2001 From: stefanf Date: Sat, 19 Jun 2004 09:25:21 +0000 Subject: Our MI implementation of ilogb() returns -INT_MAX for the argument 0.0 rather than INT_MIN, so adjust FP_ILOGB0 to reflect this. Use for INT_MAX's value while there. Reviewed by: standards@ --- lib/msun/src/math.h | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'lib/msun/src') diff --git a/lib/msun/src/math.h b/lib/msun/src/math.h index 01c29af..ac0f2ee 100644 --- a/lib/msun/src/math.h +++ b/lib/msun/src/math.h @@ -19,6 +19,7 @@ #include #include +#include /* * ANSI/POSIX @@ -36,8 +37,8 @@ extern const union __nan_un { #define HUGE_VAL (__infinity.__ud) #if __ISO_C_VISIBLE >= 1999 -#define FP_ILOGB0 (-0x7fffffff - 1) /* INT_MIN */ -#define FP_ILOGBNAN 0x7fffffff /* INT_MAX */ +#define FP_ILOGB0 (-__INT_MAX) +#define FP_ILOGBNAN __INT_MAX #define HUGE_VALF (float)HUGE_VAL #define HUGE_VALL (long double)HUGE_VAL #define INFINITY HUGE_VALF -- cgit v1.1