summaryrefslogtreecommitdiffstats
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.c27
1 files changed, 12 insertions, 15 deletions
diff --git a/compiler-rt/lib/builtins/powitf2.c b/compiler-rt/lib/builtins/powitf2.c
index 94a874b8e81..98364242f5d 100644
--- a/compiler-rt/lib/builtins/powitf2.c
+++ b/compiler-rt/lib/builtins/powitf2.c
@@ -17,21 +17,18 @@
/* Returns: a ^ b */
-COMPILER_RT_ABI long double
-__powitf2(long double a, si_int b)
-{
- const int recip = b < 0;
- long double r = 1;
- while (1)
- {
- if (b & 1)
- r *= a;
- b /= 2;
- if (b == 0)
- break;
- a *= a;
- }
- return recip ? 1/r : r;
+COMPILER_RT_ABI long double __powitf2(long double a, si_int b) {
+ const int recip = b < 0;
+ long double r = 1;
+ while (1) {
+ if (b & 1)
+ r *= a;
+ b /= 2;
+ if (b == 0)
+ break;
+ a *= a;
+ }
+ return recip ? 1 / r : r;
}
#endif
OpenPOWER on IntegriCloud