[前][次][番号順一覧][スレッド一覧]

ruby-changes:30488

From: akr <ko1@a...>
Date: Fri, 16 Aug 2013 00:01:46 +0900 (JST)
Subject: [ruby-changes:30488] akr:r42567 (trunk): * bignum.c (bigdivrem_normal): Remove a local variable.

akr	2013-08-16 00:01:38 +0900 (Fri, 16 Aug 2013)

  New Revision: 42567

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=42567

  Log:
    * bignum.c (bigdivrem_normal): Remove a local variable.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42566)
+++ ChangeLog	(revision 42567)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Thu Aug 15 23:26:12 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (bigdivrem_normal): Remove a local variable.
+
 Thu Aug 15 23:08:32 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (big2str_karatsuba): Use bigdivrem_restoring directly to
Index: bignum.c
===================================================================
--- bignum.c	(revision 42566)
+++ bignum.c	(revision 42567)
@@ -2727,11 +2727,9 @@ bigdivrem_restoring(BDIGIT *zds, size_t https://github.com/ruby/ruby/blob/trunk/bignum.c#L2727
 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);

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]