]> sourceware.org Git - newlib-cygwin.git/commitdiff
2001-11-01 Arati Dikey <aratidikey@hotmail.com>
authorJeff Johnston <jjohnstn@redhat.com>
Thu, 1 Nov 2001 19:47:32 +0000 (19:47 +0000)
committerJeff Johnston <jjohnstn@redhat.com>
Thu, 1 Nov 2001 19:47:32 +0000 (19:47 +0000)
        * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
        * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
        [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.

newlib/ChangeLog
newlib/libm/mathfp/sf_isinf.c
newlib/libm/mathfp/sf_isnan.c

index 4ecd47a4587aa92d9cb846527b35c867f10237ba..4cb8a1995f02e9e0f5ec173341aeaea93ab548f2 100644 (file)
@@ -1,3 +1,10 @@
+2001-11-01  Arati Dikey  <aratidikey@hotmail.com>
+
+       * libm/mathfp/sf_isinf.c (isinff): Change to use _DEFUN macro.
+       [_DOUBLE_IS_32BITS](isinf): New function that calls isinff.
+       * libm/mathfp/sf_isnan.c (isnanf): Change to use _DEFUN macro.
+       [_DOUBLE_IS_32BITS](isnan): New function that calls isnanf.
+
 2001-10-24  Christopher Faylor  <cgf@redhat.com>
 
        * libc/stdio/fseek.c: Reset pointer to buffer base
index 5d537607abb5476eaa333a151449a602db927c68..84ab3f71c80da41c5b68a566cfda5de28c9f839b 100644 (file)
@@ -18,7 +18,9 @@
 #include "fdlibm.h"
 #include "zmath.h"
 
-int isinff (float x)
+int 
+_DEFUN (isinff, (float),
+       float x)
 {
   __uint32_t wx;
   int exp;
@@ -31,3 +33,16 @@ int isinff (float x)
   else
     return (0);
 }
+
+#ifdef _DOUBLE_IS_32BITS
+
+int
+_DEFUN (isinf, (double),
+        double x)
+{
+  return isinff ((float) x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */
+
+
index 3dcdbf452be8f0b50feba7fbb4a6fb55b7c3b2de..ac557a6b8a7131e792c20487b47795842b048fa7 100644 (file)
@@ -18,7 +18,9 @@
 #include "fdlibm.h"
 #include "zmath.h"
 
-int isnanf (float x)
+int
+_DEFUN (isnanf, (float),
+        float x)
 {
   __int32_t wx;
   int exp;
@@ -31,3 +33,16 @@ int isnanf (float x)
   else
     return (0);
 }
+
+
+#ifdef _DOUBLE_IS_32BITS
+
+int
+_DEFUN (isnan, (double),
+        double x)
+{
+  return isnanf((float) x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */
+
This page took 0.039933 seconds and 5 git commands to generate.