mirror of
https://sourceware.org/git/glibc.git
synced 2025-01-08 18:30:18 +00:00
(__ilogbl): Fix test for infinity.
This commit is contained in:
parent
b412350783
commit
bfc4cf5a17
@ -53,9 +53,13 @@ static char rcsid[] = "$NetBSD: $";
|
|||||||
return ix;
|
return ix;
|
||||||
}
|
}
|
||||||
else if (es<0x7fff) return es-0x3fff;
|
else if (es<0x7fff) return es-0x3fff;
|
||||||
else if (FP_ILOGBNAN != INT_MAX && (hx|lx) == 0)
|
else if (FP_ILOGBNAN != INT_MAX)
|
||||||
/* ISO C99 requires ilogbl(+-Inf) == INT_MAX. */
|
{
|
||||||
return INT_MAX;
|
GET_LDOUBLE_WORDS(es,hx,lx,x);
|
||||||
|
if ((hx & 0x7fffffff|lx) == 0)
|
||||||
|
/* ISO C99 requires ilogbl(+-Inf) == INT_MAX. */
|
||||||
|
return INT_MAX;
|
||||||
|
}
|
||||||
return FP_ILOGBNAN;
|
return FP_ILOGBNAN;
|
||||||
}
|
}
|
||||||
weak_alias (__ilogbl, ilogbl)
|
weak_alias (__ilogbl, ilogbl)
|
||||||
|
Loading…
Reference in New Issue
Block a user