implement nan, nanf, nanl
authorRich Felker <dalias@aerifal.cx>
Tue, 13 Mar 2012 05:55:25 +0000 (01:55 -0400)
committerRich Felker <dalias@aerifal.cx>
Tue, 13 Mar 2012 05:55:25 +0000 (01:55 -0400)
src/math/nan.c [new file with mode: 0644]
src/math/nanf.c [new file with mode: 0644]
src/math/nanl.c [new file with mode: 0644]

diff --git a/src/math/nan.c b/src/math/nan.c
new file mode 100644 (file)
index 0000000..9e0826c
--- /dev/null
@@ -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 (file)
index 0000000..752ce54
--- /dev/null
@@ -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 (file)
index 0000000..969af56
--- /dev/null
@@ -0,0 +1,6 @@
+#include <math.h>
+
+long double nanl(const char *s)
+{
+       return NAN;
+}