Browse Source

implement nan, nanf, nanl

Rich Felker 13 years ago
parent
commit
bf9d9dcaa6
3 changed files with 18 additions and 0 deletions
  1. 6 0
      src/math/nan.c
  2. 6 0
      src/math/nanf.c
  3. 6 0
      src/math/nanl.c

+ 6 - 0
src/math/nan.c

@@ -0,0 +1,6 @@
+#include <math.h>
+
+double nan(const char *s)
+{
+	return NAN;
+}

+ 6 - 0
src/math/nanf.c

@@ -0,0 +1,6 @@
+#include <math.h>
+
+float nanf(const char *s)
+{
+	return NAN;
+}

+ 6 - 0
src/math/nanl.c

@@ -0,0 +1,6 @@
+#include <math.h>
+
+long double nanl(const char *s)
+{
+	return NAN;
+}