Pārlūkot izejas kodu

implement nan, nanf, nanl

Rich Felker 13 gadi atpakaļ
vecāks
revīzija
bf9d9dcaa6
3 mainītis faili ar 18 papildinājumiem un 0 dzēšanām
  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;
+}