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>
This commit is contained in:
Corinna Vinschen 2018-10-10 17:49:53 +02:00
parent 323b48b975
commit 682c4a9f1e
3 changed files with 6 additions and 6 deletions

View File

@ -38,5 +38,11 @@ nanl (const char *tagp)
{ {
return nan(tagp); return nan(tagp);
} }
#elif __GNUC_PREREQ (3, 3)
long double
nanl (const char *tagp)
{
return __builtin_nanl("");
}
#endif #endif

View File

@ -218,7 +218,6 @@ MATH_OFILES:= \
lrintl.o \ lrintl.o \
lroundl.o \ lroundl.o \
modfl.o \ modfl.o \
nanl.o \
nearbyint.o \ nearbyint.o \
nearbyintf.o \ nearbyintf.o \
nearbyintl.o \ nearbyintl.o \

View File

@ -1,5 +0,0 @@
long double
nanl (const char *tagp)
{
return __builtin_nanl ("");
}