summaryrefslogtreecommitdiff
path: root/compiler-rt/lib/builtins/clzsi2.c
diff options
context:
space:
mode:
Diffstat (limited to 'compiler-rt/lib/builtins/clzsi2.c')
-rw-r--r--compiler-rt/lib/builtins/clzsi2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler-rt/lib/builtins/clzsi2.c b/compiler-rt/lib/builtins/clzsi2.c
index 3f9f27f41331..d75f56d937b0 100644
--- a/compiler-rt/lib/builtins/clzsi2.c
+++ b/compiler-rt/lib/builtins/clzsi2.c
@@ -16,7 +16,7 @@
// Precondition: a != 0
-COMPILER_RT_ABI si_int __clzsi2(si_int a) {
+COMPILER_RT_ABI int __clzsi2(si_int a) {
su_int x = (su_int)a;
si_int t = ((x & 0xFFFF0000) == 0) << 4; // if (x is small) t = 16 else 0
x >>= 16 - t; // x = [0 - 0xFFFF]