Browse Source

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>
sh3port
Corinna Vinschen 3 years ago
parent
commit
682c4a9f1e
  1. 6
      newlib/libm/common/nanl.c
  2. 1
      winsup/cygwin/Makefile.in
  3. 5
      winsup/cygwin/math/nanl.c

6
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

1
winsup/cygwin/Makefile.in

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

5
winsup/cygwin/math/nanl.c

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