浏览代码

implement nan, nanf, nanl

Rich Felker 13 年之前
父节点
当前提交
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;
+}