mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (bigdivrem_normal): Remove a local variable.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
d94fc786a4
commit
942a3c9985
2 changed files with 5 additions and 3 deletions
|
@ -1,3 +1,7 @@
|
|||
Thu Aug 15 23:26:12 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bigdivrem_normal): Remove a local variable.
|
||||
|
||||
Thu Aug 15 23:08:32 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (big2str_karatsuba): Use bigdivrem_restoring directly to
|
||||
|
|
4
bignum.c
4
bignum.c
|
@ -2727,11 +2727,9 @@ bigdivrem_restoring(BDIGIT *zds, size_t zn, BDIGIT *yds, size_t yn)
|
|||
static void
|
||||
bigdivrem_normal(BDIGIT *zds, size_t zn, const BDIGIT *xds, size_t xn, BDIGIT *yds, size_t yn, int needs_mod)
|
||||
{
|
||||
BDIGIT q;
|
||||
int shift;
|
||||
|
||||
q = yds[yn-1];
|
||||
shift = nlz(q);
|
||||
shift = nlz(yds[yn-1]);
|
||||
if (shift) {
|
||||
bary_small_lshift(yds, yds, yn, shift);
|
||||
zds[xn] = bary_small_lshift(zds, xds, xn, shift);
|
||||
|
|
Loading…
Reference in a new issue