1
0
Эх сурвалжийг харах

implement nan, nanf, nanl

Rich Felker 13 жил өмнө
parent
commit
bf9d9dcaa6
3 өөрчлөгдсөн 18 нэмэгдсэн , 0 устгасан
  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;
+}