aboutsummaryrefslogtreecommitdiff
path: root/libquadmath
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath')
-rw-r--r--libquadmath/ChangeLog12
-rw-r--r--libquadmath/libquadmath.texi12
-rw-r--r--libquadmath/math/sqrtq.c3
3 files changed, 21 insertions, 6 deletions
diff --git a/libquadmath/ChangeLog b/libquadmath/ChangeLog
index 11e15a0..204ac26 100644
--- a/libquadmath/ChangeLog
+++ b/libquadmath/ChangeLog
@@ -1,3 +1,15 @@
+2024-08-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
+
+ * libquadmath.texi (M_LOG2Eq, M_LOG10Eq, M_1_PIq,
+ M_2_PIq, M_2_SQRTPIq, M_SQRT1_2q): Adjust descriptioni
+ of these constants.
+
+2024-08-03 Jakub Jelinek <jakub@redhat.com>
+
+ PR target/116007
+ * math/sqrtq.c (TFtype): For PowerPC without __LONG_DOUBLE_IEEE128__
+ define to __float128 before including soft-fp.h and quad.h.
+
2024-05-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* Makefile.am [LIBQUAD_USE_SYMVER_SUN] (quadmath.map-sun): Pass
diff --git a/libquadmath/libquadmath.texi b/libquadmath/libquadmath.texi
index dc2a9ff..901ae55 100644
--- a/libquadmath/libquadmath.texi
+++ b/libquadmath/libquadmath.texi
@@ -118,18 +118,18 @@ The following mathematical constants of type @code{__float128} are defined.
@table @asis
@item @code{M_Eq}: the constant e (Euler's number)
-@item @code{M_LOG2Eq}: binary logarithm of 2
-@item @code{M_LOG10Eq}: common, decimal logarithm of 2
+@item @code{M_LOG2Eq}: base 2 logarithm of e
+@item @code{M_LOG10Eq}: decimal (base 10) logarithm of e
@item @code{M_LN2q}: natural logarithm of 2
@item @code{M_LN10q}: natural logarithm of 10
@item @code{M_PIq}: pi
@item @code{M_PI_2q}: pi divided by two
@item @code{M_PI_4q}: pi divided by four
-@item @code{M_1_PIq}: one over pi
-@item @code{M_2_PIq}: one over two pi
-@item @code{M_2_SQRTPIq}: two over square root of pi
+@item @code{M_1_PIq}: one divided by pi
+@item @code{M_2_PIq}: two divided by pi
+@item @code{M_2_SQRTPIq}: two divided by square root of pi
@item @code{M_SQRT2q}: square root of 2
-@item @code{M_SQRT1_2q}: one over square root of 2
+@item @code{M_SQRT1_2q}: one divided by square root of 2
@end table
diff --git a/libquadmath/math/sqrtq.c b/libquadmath/math/sqrtq.c
index 8ca2828..a58998a 100644
--- a/libquadmath/math/sqrtq.c
+++ b/libquadmath/math/sqrtq.c
@@ -9,6 +9,9 @@
&& defined(FE_TOWARDZERO) \
&& defined(FE_INEXACT)
#define USE_SOFT_FP 1
+#if defined(_ARCH_PPC) && !defined(__LONG_DOUBLE_IEEE128__)
+#define TFtype __float128
+#endif
#include "../../libgcc/soft-fp/soft-fp.h"
#include "../../libgcc/soft-fp/quad.h"
#endif