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

ruby-changes:30290

From: akr <ko1@a...>
Date: Sat, 3 Aug 2013 01:22:58 +0900 (JST)
Subject: [ruby-changes:30290] akr:r42342 (trunk): * bignum.c (bigadd_core): Removed.

akr	2013-08-03 01:22:47 +0900 (Sat, 03 Aug 2013)

  New Revision: 42342

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

  Log:
    * bignum.c (bigadd_core): Removed.
      (bigadd): Use bary_add instead of bigadd_core.

  Modified files:
    trunk/ChangeLog
    trunk/bignum.c

Index: ChangeLog
===================================================================
--- ChangeLog	(revision 42341)
+++ ChangeLog	(revision 42342)
@@ -1,3 +1,8 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Sat Aug  3 01:20:19 2013  Tanaka Akira  <akr@f...>
+
+	* bignum.c (bigadd_core): Removed.
+	  (bigadd): Use bary_add instead of bigadd_core.
+
 Sat Aug  3 00:52:43 2013  Tanaka Akira  <akr@f...>
 
 	* bignum.c (rb_big2str1): Simplify power_level calculation.
Index: bignum.c
===================================================================
--- bignum.c	(revision 42341)
+++ bignum.c	(revision 42342)
@@ -5357,12 +5357,6 @@ bigadd_int(VALUE x, long y) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5357
     return bignorm(z);
 }
 
-static void
-bigadd_core(BDIGIT *xds, long xn, BDIGIT *yds, long yn, BDIGIT *zds, long zn)
-{
-    bary_add(zds, zn, xds, xn, yds, yn);
-}
-
 static VALUE
 bigadd(VALUE x, VALUE y, int sign)
 {
@@ -5383,9 +5377,9 @@ bigadd(VALUE x, VALUE y, int sign) https://github.com/ruby/ruby/blob/trunk/bignum.c#L5377
     }
     z = bignew(len, sign);
 
-    bigadd_core(BDIGITS(x), RBIGNUM_LEN(x),
-		BDIGITS(y), RBIGNUM_LEN(y),
-		BDIGITS(z), RBIGNUM_LEN(z));
+    bary_add(BDIGITS(z), RBIGNUM_LEN(z),
+             BDIGITS(x), RBIGNUM_LEN(x),
+             BDIGITS(y), RBIGNUM_LEN(y));
 
     return z;
 }

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

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