summaryrefslogtreecommitdiff
path: root/libgcompat/math.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgcompat/math.c')
-rw-r--r--libgcompat/math.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/libgcompat/math.c b/libgcompat/math.c
new file mode 100644
index 0000000..bacec36
--- /dev/null
+++ b/libgcompat/math.c
@@ -0,0 +1,21 @@
+#include <math.h> // isinf, isnan
+
+int __isinff(float number)
+{
+ return isinf(number);
+}
+
+int __isinf(double number)
+{
+ return isinf(number);
+}
+
+int __isnanf(float number)
+{
+ return isnan(number);
+}
+
+int __isnan(double number)
+{
+ return isnan(number);
+}