aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-07-29 17:56:43 -0700
committerAlon Zakai <alonzakai@gmail.com>2013-07-29 17:56:43 -0700
commit0fb0ee563b287d022877a30e265bcc96687d628f (patch)
tree2309fd57a5ed7ba48640512985d175de972eb1fa
parent7b1cee52c46768edd7948d6817f13b5431131da7 (diff)
parent4258d64d0c6f0fbee8f17feed7200c18ea44a059 (diff)
Merge pull request #1443 from yukoba/isinff_isnanf
Add isinff and isnanf
-rw-r--r--system/include/libc/math.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/system/include/libc/math.h b/system/include/libc/math.h
index 3bd0621c..e9af660f 100644
--- a/system/include/libc/math.h
+++ b/system/include/libc/math.h
@@ -202,10 +202,18 @@ extern int __signbitd (double x);
#define isinf(y) (fpclassify(y) == FP_INFINITE)
#endif
+#ifndef isinff
+ #define isinff isinf
+#endif
+
#ifndef isnan
#define isnan(y) (fpclassify(y) == FP_NAN)
#endif
+#ifndef isnanf
+ #define isnanf isnan
+#endif
+
#define isnormal(y) (fpclassify(y) == FP_NORMAL)
#define signbit(__x) \
((sizeof(__x) == sizeof(float)) ? __signbitf(__x) : \