summaryrefslogtreecommitdiff
path: root/compiler-rt/lib/builtins/powitf2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/powitf2.c')
-rw-r--r--compiler-rt/lib/builtins/powitf2.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler-rt/lib/builtins/powitf2.c b/compiler-rt/lib/builtins/powitf2.c
index fcbdb4c2ee2a..8e639a03a3c4 100644
--- a/compiler-rt/lib/builtins/powitf2.c
+++ b/compiler-rt/lib/builtins/powitf2.c
@@ -10,13 +10,14 @@
//
//===----------------------------------------------------------------------===//
-#include "int_lib.h"
+#define QUAD_PRECISION
+#include "fp_lib.h"
-#if _ARCH_PPC
+#if defined(CRT_HAS_128BIT) && defined(CRT_LDBL_128BIT)
// Returns: a ^ b
-COMPILER_RT_ABI long double __powitf2(long double a, si_int b) {
+COMPILER_RT_ABI long double __powitf2(long double a, int b) {
const int recip = b < 0;
long double r = 1;
while (1) {