Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'newlib/libm/mathfp/sf_isinf.c')
-rw-r--r--newlib/libm/mathfp/sf_isinf.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/newlib/libm/mathfp/sf_isinf.c b/newlib/libm/mathfp/sf_isinf.c
index 5d537607a..84ab3f71c 100644
--- a/newlib/libm/mathfp/sf_isinf.c
+++ b/newlib/libm/mathfp/sf_isinf.c
@@ -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) */
+
+