ruby-changes:30469
From: akr <ko1@a...>
Date: Wed, 14 Aug 2013 00:54:38 +0900 (JST)
Subject: [ruby-changes:30469] akr:r42548 (trunk): * bignum.c (bigdivrem_restoring): xn argument removed.
akr 2013-08-14 00:54:27 +0900 (Wed, 14 Aug 2013) New Revision: 42548 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42548 Log: * bignum.c (bigdivrem_restoring): xn argument removed. (bigdivrem_normal): Follow the above change. Modified files: trunk/ChangeLog trunk/bignum.c Index: ChangeLog =================================================================== --- ChangeLog (revision 42547) +++ ChangeLog (revision 42548) @@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Wed Aug 14 00:51:14 2013 Tanaka Akira <akr@f...> + + * bignum.c (bigdivrem_restoring): xn argument removed. + (bigdivrem_normal): Follow the above change. + Wed Aug 14 00:18:39 2013 Tanaka Akira <akr@f...> * bignum.c (big_div_struct): Remove xn and j field. Add zn field. Index: bignum.c =================================================================== --- bignum.c (revision 42547) +++ bignum.c (revision 42548) @@ -2696,7 +2696,7 @@ bigdivrem_single(BDIGIT *qds, const BDIG https://github.com/ruby/ruby/blob/trunk/bignum.c#L2696 } static void -bigdivrem_restoring(BDIGIT *zds, size_t zn, size_t xn, BDIGIT *yds, size_t yn) +bigdivrem_restoring(BDIGIT *zds, size_t zn, BDIGIT *yds, size_t yn) { struct big_div_struct bds; size_t ynzero; @@ -2709,7 +2709,7 @@ bigdivrem_restoring(BDIGIT *zds, size_t https://github.com/ruby/ruby/blob/trunk/bignum.c#L2709 bds.yds = yds + ynzero; bds.stop = Qfalse; bds.zn = zn - ynzero; - if (xn > 10000 || yn > 10000) { + if (bds.zn > 10000 || bds.yn > 10000) { retry: bds.stop = Qfalse; rb_thread_call_without_gvl(bigdivrem1, &bds, rb_big_stop, &bds); @@ -2742,7 +2742,7 @@ bigdivrem_normal(BDIGIT *zds, size_t zn, https://github.com/ruby/ruby/blob/trunk/bignum.c#L2742 } if (xn+1 < zn) zds[xn+1] = 0; - bigdivrem_restoring(zds, zn, xn, yds, yn); + bigdivrem_restoring(zds, zn, yds, yn); if (needs_mod && shift) { bary_small_rshift(zds, zds, yn, shift, 0); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/