From bf9d9dcaa631db9918452d05c188f01c8e5f537f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Tue, 13 Mar 2012 01:55:25 -0400 Subject: [PATCH 1/1] implement nan, nanf, nanl --- src/math/nan.c | 6 ++++++ src/math/nanf.c | 6 ++++++ src/math/nanl.c | 6 ++++++ 3 files changed, 18 insertions(+) create mode 100644 src/math/nan.c create mode 100644 src/math/nanf.c create mode 100644 src/math/nanl.c 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 + +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 + +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 + +long double nanl(const char *s) +{ + return NAN; +} -- 2.20.1