aboutsummaryrefslogtreecommitdiff
path: root/libquadmath/math
diff options
context:
space:
mode:
Diffstat (limited to 'libquadmath/math')
-rw-r--r--libquadmath/math/expq.c2
-rw-r--r--libquadmath/math/sqrtq.c3
2 files changed, 4 insertions, 1 deletions
diff --git a/libquadmath/math/expq.c b/libquadmath/math/expq.c
index 1aaad91..1715988 100644
--- a/libquadmath/math/expq.c
+++ b/libquadmath/math/expq.c
@@ -74,7 +74,7 @@ static const __float128 C[] = {
/* 3x2^96 */
#define THREEp96 C[2]
- 59421121885698253195157962752.0Q,
+ 237684487542793012780631851008.0Q,
/* 3x2^103 */
#define THREEp103 C[3]
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