X-Git-Url: http://nsz.repo.hu/git/?p=libm;a=blobdiff_plain;f=src%2Fmath%2Filogbl.c;h=3b42c4d1027869401f52637be458804c68280066;hp=099c81a4ebf4c11e07e8804e0f28efd8c80119ed;hb=f1278a53fcf066facd97c8c782a412b39d0f2bc4;hpb=21d0f5c85063b4e1f8168fc53fb4238d78375f08 diff --git a/src/math/ilogbl.c b/src/math/ilogbl.c index 099c81a..3b42c4d 100644 --- a/src/math/ilogbl.c +++ b/src/math/ilogbl.c @@ -21,7 +21,7 @@ int ilogbl(long double x) } if (e == 0x7fff) /* in ld80 msb is set in inf */ - return m & ~((uint64_t)1<<63) ? FP_ILOGBNAN : INT_MAX; + return m & (uint64_t)-1>>1 ? FP_ILOGBNAN : INT_MAX; return e - 0x3fff; } #endif