Explorar o código

implement nan, nanf, nanl

Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
bf9d9dcaa6
Modificáronse 3 ficheiros con 18 adicións e 0 borrados
  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;
+}