summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/builtins/ctzti2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/ctzti2.c')
-rw-r--r--compiler-rt/lib/builtins/ctzti2.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/compiler-rt/lib/builtins/ctzti2.c b/compiler-rt/lib/builtins/ctzti2.c
index aa243794f88..d65035b3898 100644
--- a/compiler-rt/lib/builtins/ctzti2.c
+++ b/compiler-rt/lib/builtins/ctzti2.c
@@ -19,14 +19,12 @@
/* Precondition: a != 0 */
-COMPILER_RT_ABI si_int
-__ctzti2(ti_int a)
-{
- twords x;
- x.all = a;
- const di_int f = -(x.s.low == 0);
- return __builtin_ctzll((x.s.high & f) | (x.s.low & ~f)) +
- ((si_int)f & ((si_int)(sizeof(di_int) * CHAR_BIT)));
+COMPILER_RT_ABI si_int __ctzti2(ti_int a) {
+ twords x;
+ x.all = a;
+ const di_int f = -(x.s.low == 0);
+ return __builtin_ctzll((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