mirror of git://sourceware.org/git/glibc.git
Replace finite with isfinite.
This commit is contained in:
parent
d81f90ccd0
commit
cbf377edd3
|
@ -1,3 +1,10 @@
|
||||||
|
2015-06-03 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
|
* sysdeps/ieee754/ldbl-128ibm/s_fmal.c (__fmal): Replace finite with
|
||||||
|
isfinite.
|
||||||
|
* sysdeps/ieee754/ldbl-96/s_fma.c (__fma): Likewise.
|
||||||
|
* sysdeps/ieee754/ldbl-opt/nldbl-finite.c (__finitel): Likewise.
|
||||||
|
|
||||||
2015-06-03 Wilco Dijkstra <wdijkstr@arm.com>
|
2015-06-03 Wilco Dijkstra <wdijkstr@arm.com>
|
||||||
|
|
||||||
* math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
|
* math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
|
||||||
|
|
|
@ -26,7 +26,7 @@ __fmal (long double x, long double y, long double z)
|
||||||
/* An IBM long double 128 is really just 2 IEEE64 doubles, and in
|
/* An IBM long double 128 is really just 2 IEEE64 doubles, and in
|
||||||
* the case of inf/nan only the first double counts. So we use the
|
* the case of inf/nan only the first double counts. So we use the
|
||||||
* (double) cast to avoid any data movement. */
|
* (double) cast to avoid any data movement. */
|
||||||
if ((finite ((double)x) && finite ((double)y)) && isinf ((double)z))
|
if ((isfinite ((double)x) && isfinite ((double)y)) && isinf ((double)z))
|
||||||
return (z);
|
return (z);
|
||||||
|
|
||||||
/* If z is zero and x are y are nonzero, compute the result
|
/* If z is zero and x are y are nonzero, compute the result
|
||||||
|
|
|
@ -34,7 +34,7 @@ __fma (double x, double y, double z)
|
||||||
{
|
{
|
||||||
/* If z is Inf, but x and y are finite, the result should be
|
/* If z is Inf, but x and y are finite, the result should be
|
||||||
z rather than NaN. */
|
z rather than NaN. */
|
||||||
if (finite (x) && finite (y))
|
if (isfinite (x) && isfinite (y))
|
||||||
return (z + x) + y;
|
return (z + x) + y;
|
||||||
return (x * y) + z;
|
return (x * y) + z;
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ int
|
||||||
attribute_hidden
|
attribute_hidden
|
||||||
__finitel (double x)
|
__finitel (double x)
|
||||||
{
|
{
|
||||||
return finite (x);
|
return isfinite (x);
|
||||||
}
|
}
|
||||||
extern __typeof (__finitel) finitel attribute_hidden;
|
extern __typeof (__finitel) finitel attribute_hidden;
|
||||||
weak_alias (__finitel, finitel)
|
weak_alias (__finitel, finitel)
|
||||||
|
|
Loading…
Reference in New Issue