Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2018-10-10 18:49:53 +0300
committerCorinna Vinschen <corinna@vinschen.de>2018-10-10 18:49:53 +0300
commit682c4a9f1e77ced554e354bd2c1297b9afe2c6aa (patch)
treef95455f00c5688291a09922ad1713cc017f0b65a /newlib/libm/common
parent323b48b975e5b305a5aaa5046ef1dc655fb1deba (diff)
Implement nanl in newlib only
Drop Cygwin-specific nanl in favor of a generic implementation in newlib. Requires GCC 3.3 or later. Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diffstat (limited to 'newlib/libm/common')
-rw-r--r--newlib/libm/common/nanl.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/newlib/libm/common/nanl.c b/newlib/libm/common/nanl.c
index 40f898109..b8ae63ea7 100644
--- a/newlib/libm/common/nanl.c
+++ b/newlib/libm/common/nanl.c
@@ -38,5 +38,11 @@ nanl (const char *tagp)
{
return nan(tagp);
}
+#elif __GNUC_PREREQ (3, 3)
+long double
+nanl (const char *tagp)
+{
+ return __builtin_nanl("");
+}
#endif