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:
Diffstat (limited to 'newlib/libm')
-rw-r--r--newlib/libm/common/s_nan.c4
-rw-r--r--newlib/libm/common/sf_nan.c4
-rw-r--r--newlib/libm/complex/complex.tex67
-rw-r--r--newlib/libm/math/math.tex165
4 files changed, 162 insertions, 78 deletions
diff --git a/newlib/libm/common/s_nan.c b/newlib/libm/common/s_nan.c
index 7ff4ef73e..ba0bb0ac1 100644
--- a/newlib/libm/common/s_nan.c
+++ b/newlib/libm/common/s_nan.c
@@ -41,7 +41,11 @@ QUICKREF
{
double x;
+#if __GNUC_PREREQ (3, 3)
+ x = __builtin_nan("");
+#else
INSERT_WORDS(x,0x7ff80000,0);
+#endif
return x;
}
diff --git a/newlib/libm/common/sf_nan.c b/newlib/libm/common/sf_nan.c
index 831f3f79f..8f0e1a8cf 100644
--- a/newlib/libm/common/sf_nan.c
+++ b/newlib/libm/common/sf_nan.c
@@ -9,7 +9,11 @@
{
float x;
+#if __GNUC_PREREQ (3, 3)
+ x = __builtin_nanf("");
+#else
SET_FLOAT_WORD(x,0x7fc00000);
+#endif
return x;
}
diff --git a/newlib/libm/complex/complex.tex b/newlib/libm/complex/complex.tex
index 4ac14c3a9..ec3258a5e 100644
--- a/newlib/libm/complex/complex.tex
+++ b/newlib/libm/complex/complex.tex
@@ -30,26 +30,47 @@ Functions and documentations are taken from NetBSD.
* ctanh:: Complex hyperbolic tangent
@end menu
-
-@page @include complex/cabs.def
-@page @include complex/cacos.def
-@page @include complex/cacosh.def
-@page @include complex/carg.def
-@page @include complex/casin.def
-@page @include complex/casinh.def
-@page @include complex/catan.def
-@page @include complex/catanh.def
-@page @include complex/ccos.def
-@page @include complex/ccosh.def
-@page @include complex/cexp.def
-@page @include complex/cimag.def
-@page @include complex/clog.def
-@page @include complex/conj.def
-@page @include complex/cpow.def
-@page @include complex/cproj.def
-@page @include complex/creal.def
-@page @include complex/csin.def
-@page @include complex/csinh.def
-@page @include complex/csqrt.def
-@page @include complex/ctan.def
-@page @include complex/ctanh.def
+@page
+@include complex/cabs.def
+@page
+@include complex/cacos.def
+@page
+@include complex/cacosh.def
+@page
+@include complex/carg.def
+@page
+@include complex/casin.def
+@page
+@include complex/casinh.def
+@page
+@include complex/catan.def
+@page
+@include complex/catanh.def
+@page
+@include complex/ccos.def
+@page
+@include complex/ccosh.def
+@page
+@include complex/cexp.def
+@page
+@include complex/cimag.def
+@page
+@include complex/clog.def
+@page
+@include complex/conj.def
+@page
+@include complex/cpow.def
+@page
+@include complex/cproj.def
+@page
+@include complex/creal.def
+@page
+@include complex/csin.def
+@page
+@include complex/csinh.def
+@page
+@include complex/csqrt.def
+@page
+@include complex/ctan.def
+@page
+@include complex/ctanh.def
diff --git a/newlib/libm/math/math.tex b/newlib/libm/math/math.tex
index 608268ab9..03268f9b5 100644
--- a/newlib/libm/math/math.tex
+++ b/newlib/libm/math/math.tex
@@ -162,58 +162,113 @@ registered trademark of The IEEE.
@c to reflect function name of Bessel (as opposed to j; e.g. after atanh,
@c before cbrt).
-@page @include math/w_acos.def
-@page @include math/w_acosh.def
-@page @include math/w_asin.def
-@page @include math/s_asinh.def
-@page @include math/s_atan.def
-@page @include math/w_atan2.def
-@page @include math/w_atanh.def
-@page @include math/w_j0.def
-@page @include common/s_cbrt.def
-@page @include common/s_copysign.def
-@page @include math/w_cosh.def
-@page @include math/s_erf.def
-@page @include math/w_exp.def
-@page @include math/w_exp2.def
-@page @include common/s_expm1.def
-@page @include math/s_fabs.def
-@page @include common/s_fdim.def
-@page @include math/s_floor.def
-@page @include common/s_fma.def
-@page @include common/s_fmax.def
-@page @include common/s_fmin.def
-@page @include math/w_fmod.def
-@page @include math/s_frexp.def
-@page @include math/w_gamma.def
-@page @include math/w_hypot.def
-@page @include common/s_ilogb.def
-@page @include common/s_infinity.def
-@page @include common/isgreater.def
-@page @include common/s_isnan.def
-@page @include math/s_ldexp.def
-@page @include math/w_log.def
-@page @include math/w_log10.def
-@page @include common/s_log1p.def
-@page @include common/s_log2.def
-@page @include common/s_logb.def
-@page @include common/s_lrint.def
-@page @include common/s_lround.def
-@page @include common/s_matherr.def
-@page @include common/s_modf.def
-@page @include common/s_nan.def
-@page @include common/s_nearbyint.def
-@page @include common/s_nextafter.def
-@page @include math/w_pow.def
-@page @include math/w_remainder.def
-@page @include common/s_remquo.def
-@page @include common/s_rint.def
-@page @include common/s_round.def
-@page @include common/s_scalbn.def
-@page @include common/s_signbit.def
-@page @include math/s_sin.def
-@page @include math/w_sinh.def
-@page @include math/w_sqrt.def
-@page @include math/s_tan.def
-@page @include math/s_tanh.def
-@page @include common/s_trunc.def
+@page
+@include math/w_acos.def
+@page
+@include math/w_acosh.def
+@page
+@include math/w_asin.def
+@page
+@include math/s_asinh.def
+@page
+@include math/s_atan.def
+@page
+@include math/w_atan2.def
+@page
+@include math/w_atanh.def
+@page
+@include math/w_j0.def
+@page
+@include common/s_cbrt.def
+@page
+@include common/s_copysign.def
+@page
+@include math/w_cosh.def
+@page
+@include math/s_erf.def
+@page
+@include math/w_exp.def
+@page
+@include math/w_exp2.def
+@page
+@include common/s_expm1.def
+@page
+@include math/s_fabs.def
+@page
+@include common/s_fdim.def
+@page
+@include math/s_floor.def
+@page
+@include common/s_fma.def
+@page
+@include common/s_fmax.def
+@page
+@include common/s_fmin.def
+@page
+@include math/w_fmod.def
+@page
+@include math/s_frexp.def
+@page
+@include math/w_gamma.def
+@page
+@include math/w_hypot.def
+@page
+@include common/s_ilogb.def
+@page
+@include common/s_infinity.def
+@page
+@include common/isgreater.def
+@page
+@include common/s_isnan.def
+@page
+@include math/s_ldexp.def
+@page
+@include math/w_log.def
+@page
+@include math/w_log10.def
+@page
+@include common/s_log1p.def
+@page
+@include common/s_log2.def
+@page
+@include common/s_logb.def
+@page
+@include common/s_lrint.def
+@page
+@include common/s_lround.def
+@page
+@include common/s_matherr.def
+@page
+@include common/s_modf.def
+@page
+@include common/s_nan.def
+@page
+@include common/s_nearbyint.def
+@page
+@include common/s_nextafter.def
+@page
+@include math/w_pow.def
+@page
+@include math/w_remainder.def
+@page
+@include common/s_remquo.def
+@page
+@include common/s_rint.def
+@page
+@include common/s_round.def
+@page
+@include common/s_scalbn.def
+@page
+@include common/s_signbit.def
+@page
+@include math/s_sin.def
+@page
+@include math/w_sinh.def
+@page
+@include math/w_sqrt.def
+@page
+@include math/s_tan.def
+@page
+@include math/s_tanh.def
+@page
+@include common/s_trunc.def