musl - musl - an implementation of the standard library for Linux-based systems

index : musl
musl - an implementation of the standard library for Linux-based systems
summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012年03月13日 01:55:25 -0400
committerRich Felker <dalias@aerifal.cx>2012年03月13日 01:55:25 -0400
commitbf9d9dcaa631db9918452d05c188f01c8e5f537f (patch)
tree0bf7955f3cb556a43122a83a614a06c1af6bb442 /src
parentb69f695acedd4ce2798ef9ea28d834ceccc789bd (diff)
downloadmusl-bf9d9dcaa631db9918452d05c188f01c8e5f537f.tar.gz
implement nan, nanf, nanl
Diffstat (limited to 'src')
-rw-r--r--src/math/nan.c 6
-rw-r--r--src/math/nanf.c 6
-rw-r--r--src/math/nanl.c 6
3 files changed, 18 insertions, 0 deletions
diff --git a/src/math/nan.c b/src/math/nan.c
new file mode 100644
index 00000000..9e0826c7
--- /dev/null
+++ b/src/math/nan.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+double nan(const char *s)
+{
+ return NAN;
+}
diff --git a/src/math/nanf.c b/src/math/nanf.c
new file mode 100644
index 00000000..752ce546
--- /dev/null
+++ b/src/math/nanf.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+float nanf(const char *s)
+{
+ return NAN;
+}
diff --git a/src/math/nanl.c b/src/math/nanl.c
new file mode 100644
index 00000000..969af564
--- /dev/null
+++ b/src/math/nanl.c
@@ -0,0 +1,6 @@
+#include <math.h>
+
+long double nanl(const char *s)
+{
+ return NAN;
+}
generated by cgit v1.2.1 (git 2.18.0) at 2025年10月05日 23:56:52 +0000

AltStyle によって変換されたページ (->オリジナル) /