about summary refs log tree commit diff
path: root/sysdeps/ieee754
diff options
context:
space:
mode:
authorWilco Dijkstra <wdijkstr@arm.com>2015-06-03 16:35:44 +0100
committerWilco Dijkstra <wdijkstr@arm.com>2015-06-03 16:35:44 +0100
commitcbf377edd318a6f35e5b54573f902299c6da9ed5 (patch)
treedf17452638183eedc8ad1a579f62a443a751f7a5 /sysdeps/ieee754
parentd81f90ccd0109de9ed78aeeb8d86e2c6d4600690 (diff)
downloadglibc-cbf377edd318a6f35e5b54573f902299c6da9ed5.tar.gz
glibc-cbf377edd318a6f35e5b54573f902299c6da9ed5.tar.xz
glibc-cbf377edd318a6f35e5b54573f902299c6da9ed5.zip
Replace finite with isfinite.
Diffstat (limited to 'sysdeps/ieee754')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/s_fmal.c2
-rw-r--r--sysdeps/ieee754/ldbl-96/s_fma.c2
-rw-r--r--sysdeps/ieee754/ldbl-opt/nldbl-finite.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_fmal.c b/sysdeps/ieee754/ldbl-128ibm/s_fmal.c
index 1c15e7e367..837444aa4c 100644
--- a/sysdeps/ieee754/ldbl-128ibm/s_fmal.c
+++ b/sysdeps/ieee754/ldbl-128ibm/s_fmal.c
@@ -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
 	 * the case of inf/nan only the first double counts. So we use the
 	 * (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);
 
        /* If z is zero and x are y are nonzero, compute the result
diff --git a/sysdeps/ieee754/ldbl-96/s_fma.c b/sysdeps/ieee754/ldbl-96/s_fma.c
index 19736ef957..8fd238cfe4 100644
--- a/sysdeps/ieee754/ldbl-96/s_fma.c
+++ b/sysdeps/ieee754/ldbl-96/s_fma.c
@@ -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
 	 z rather than NaN.  */
-      if (finite (x) && finite (y))
+      if (isfinite (x) && isfinite (y))
 	return (z + x) + y;
       return (x * y) + z;
     }
diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-finite.c b/sysdeps/ieee754/ldbl-opt/nldbl-finite.c
index af962386c1..fc51508f16 100644
--- a/sysdeps/ieee754/ldbl-opt/nldbl-finite.c
+++ b/sysdeps/ieee754/ldbl-opt/nldbl-finite.c
@@ -4,7 +4,7 @@ int
 attribute_hidden
 __finitel (double x)
 {
-  return finite (x);
+  return isfinite (x);
 }
 extern __typeof (__finitel) finitel attribute_hidden;
 weak_alias (__finitel, finitel)