Skip to content

Instantly share code, notes, and snippets.

@vvavrychuk
Last active August 29, 2015 14:03
Show Gist options
  • Save vvavrychuk/4fe8d4848133585fba62 to your computer and use it in GitHub Desktop.
Save vvavrychuk/4fe8d4848133585fba62 to your computer and use it in GitHub Desktop.
diff --git a/src/math/isinf.c b/src/math/isinf.c
new file mode 100644
index 0000000..638543c
--- /dev/null
+++ b/src/math/isinf.c
@@ -0,0 +1,9 @@
+#include <math.h>
+#include "libc.h"
+
+int __isinff(float arg)
+{
+ return isinf(arg);
+}
+
+weak_alias(__isinff, isinf);
diff --git a/src/math/isnan.c b/src/math/isnan.c
new file mode 100644
index 0000000..f4b88b9
--- /dev/null
+++ b/src/math/isnan.c
@@ -0,0 +1,9 @@
+#include <math.h>
+#include "libc.h"
+
+int __isnanf(float arg)
+{
+ return isnan(arg);
+}
+
+weak_alias(__isnanf, isnan);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment