]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Replace finite with isfinite.
authorWilco Dijkstra <wdijkstr@arm.com>
Wed, 3 Jun 2015 15:35:44 +0000 (16:35 +0100)
committerWilco Dijkstra <wdijkstr@arm.com>
Wed, 3 Jun 2015 15:35:44 +0000 (16:35 +0100)
ChangeLog
sysdeps/ieee754/ldbl-128ibm/s_fmal.c
sysdeps/ieee754/ldbl-96/s_fma.c
sysdeps/ieee754/ldbl-opt/nldbl-finite.c

index 987e71f4d5fd83e7004bb439198e2479adde60d7..33d9f6614244d25ce9f7962841c52dc00a10aea3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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>
 
        * math/e_exp10.c: Replace __isinf*, __isnan*, __finite* and
index 1c15e7e367fe4a3693966690e5371be1aba9f115..837444aa4c3c2d329a15a80314a3d5702eeca8ed 100644 (file)
@@ -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
index 19736ef9578995c25951f1e1b1f1272910555ced..8fd238cfe480c44cb68915d4b8dfe9a5ef54213a 100644 (file)
@@ -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;
     }
index af962386c1a413ba334a719ab5923762deb6c743..fc51508f16291f95fba58430f0ace529713447df 100644 (file)
@@ -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)