summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/math/nan.c6
-rw-r--r--src/math/nanf.c6
-rw-r--r--src/math/nanl.c6
3 files changed, 18 insertions, 0 deletions
diff --git a/src/math/nan.c b/src/math/nan.c
new file mode 100644
index 00000000..9e0826c7
--- /dev/null
+++ b/src/math/nan.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double nan(const char *s)
+{
+ return NAN;
+}
diff --git a/src/math/nanf.c b/src/math/nanf.c
new file mode 100644
index 00000000..752ce546
--- /dev/null
+++ b/src/math/nanf.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+float nanf(const char *s)
+{
+ return NAN;
+}
diff --git a/src/math/nanl.c b/src/math/nanl.c
new file mode 100644
index 00000000..969af564
--- /dev/null
+++ b/src/math/nanl.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+long double nanl(const char *s)
+{
+ return NAN;
+}