summaryrefslogtreecommitdiff
path: root/lib/udivmodti4.c
diff options
context:
space:
mode:
authorJoerg Sonnenberger <joerg@bec.de>2011-07-28 23:15:41 +0000
committerJoerg Sonnenberger <joerg@bec.de>2011-07-28 23:15:41 +0000
commit4fcc9aacd048741a4934f044a295d1ccf73a0173 (patch)
tree869596af103e5672e8968b91e9c2cfbf8394c472 /lib/udivmodti4.c
parentd426091fdf6a15db9a5db35d522fe69f5dee35af (diff)
downloadcompiler-rt-4fcc9aacd048741a4934f044a295d1ccf73a0173.tar.gz
compiler-rt-4fcc9aacd048741a4934f044a295d1ccf73a0173.tar.bz2
compiler-rt-4fcc9aacd048741a4934f044a295d1ccf73a0173.tar.xz
Don't redeclare sr.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@136424 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/udivmodti4.c')
-rw-r--r--lib/udivmodti4.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/udivmodti4.c b/lib/udivmodti4.c
index d1e19edd..427861b1 100644
--- a/lib/udivmodti4.c
+++ b/lib/udivmodti4.c
@@ -132,7 +132,7 @@ __udivmodti4(tu_int a, tu_int b, tu_int* rem)
*rem = n.s.low & (d.s.low - 1);
if (d.s.low == 1)
return n.all;
- unsigned sr = __builtin_ctzll(d.s.low);
+ sr = __builtin_ctzll(d.s.low);
q.s.high = n.s.high >> sr;
q.s.low = (n.s.high << (n_udword_bits - sr)) | (n.s.low >> sr);
return q.all;