[llvm-commits] [compiler-rt] r136424 - /compiler-rt/trunk/lib/udivmodti4.c
Joerg Sonnenberger
joerg at bec.de
Thu Jul 28 16:15:41 PDT 2011
Author: joerg
Date: Thu Jul 28 18:15:41 2011
New Revision: 136424
URL: http://llvm.org/viewvc/llvm-project?rev=136424&view=rev
Log:
Don't redeclare sr.
Modified:
compiler-rt/trunk/lib/udivmodti4.c
Modified: compiler-rt/trunk/lib/udivmodti4.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/udivmodti4.c?rev=136424&r1=136423&r2=136424&view=diff
==============================================================================
--- compiler-rt/trunk/lib/udivmodti4.c (original)
+++ compiler-rt/trunk/lib/udivmodti4.c Thu Jul 28 18:15:41 2011
@@ -132,7 +132,7 @@
*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;
More information about the llvm-commits
mailing list