author | Rich Felker <dalias@aerifal.cx> | 2012年05月05日 22:22:46 -0400 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2012年05月05日 22:22:46 -0400 |
commit | 98c9af500125df41fdb46d7e384b00982d72493a (patch) | |
tree | cb600f99ddc0748c9a579d298f4d6de49f9fb190 /include/math.h | |
parent | b4ccc3c1361ca611d6590dd4af288fb9fa6a843b (diff) | |
download | musl-98c9af500125df41fdb46d7e384b00982d72493a.tar.gz |
-rw-r--r-- | include/math.h | 4 |
diff --git a/include/math.h b/include/math.h index d4359f32..61738e6a 100644 --- a/include/math.h +++ b/include/math.h @@ -28,8 +28,8 @@ extern "C" { #define MATH_ERREXCEPT 2 #define math_errhandling 2 -#define FP_ILOGBNAN (((unsigned)-1)>>1) -#define FP_ILOGB0 (~FP_ILOGBNAN) +#define FP_ILOGBNAN (-1-(int)(((unsigned)-1)>>1)) +#define FP_ILOGB0 FP_ILOGBNAN #define FP_NAN 0 #define FP_INFINITE 1 |