зеркало из https://github.com/github/ruby.git
* 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:
Родитель
d94fc786a4
Коммит
942a3c9985
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче