* 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-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
#include "fdlibm.h"
#include "zmath.h"
-int isinff (float x)
+int
+_DEFUN (isinff, (float),
+ float x)
{
__uint32_t wx;
int exp;
else
return (0);
}
+
+#ifdef _DOUBLE_IS_32BITS
+
+int
+_DEFUN (isinf, (double),
+ double x)
+{
+ return isinff ((float) x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */
+
+
#include "fdlibm.h"
#include "zmath.h"
-int isnanf (float x)
+int
+_DEFUN (isnanf, (float),
+ float x)
{
__int32_t wx;
int exp;
else
return (0);
}
+
+
+#ifdef _DOUBLE_IS_32BITS
+
+int
+_DEFUN (isnan, (double),
+ double x)
+{
+ return isnanf((float) x);
+}
+
+#endif /* defined(_DOUBLE_IS_32BITS) */
+