summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/clzti2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/clzti2.c')
-rw-r--r--compiler-rt/lib/builtins/clzti2.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/compiler-rt/lib/builtins/clzti2.c b/compiler-rt/lib/builtins/clzti2.c
index 77da65c93b2..7db2566d8fd 100644
--- a/compiler-rt/lib/builtins/clzti2.c
+++ b/compiler-rt/lib/builtins/clzti2.c
@@ -19,14 +19,12 @@
/* Precondition: a != 0 */
-COMPILER_RT_ABI si_int
-__clzti2(ti_int a)
-{
- twords x;
- x.all = a;
- const di_int f = -(x.s.high == 0);
- return __builtin_clzll((x.s.high & ~f) | (x.s.low & f)) +
- ((si_int)f & ((si_int)(sizeof(di_int) * CHAR_BIT)));
+COMPILER_RT_ABI si_int __clzti2(ti_int a) {
+ twords x;
+ x.all = a;
+ const di_int f = -(x.s.high == 0);
+ return __builtin_clzll((x.s.high & ~f) | (x.s.low & f)) +
+ ((si_int)f & ((si_int)(sizeof(di_int) * CHAR_BIT)));
}
#endif /* CRT_HAS_128BIT */
OpenPOWER on IntegriCloud