summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-02 16:22:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-08-02 16:22:47 +0000
commitd0741fdf1c8ea69234cde2ac3c365c6f72dcc820 (patch)
tree31431655cb92bc128f4665da8faf54608cfe7abe
parentebbaec9696e6e567770a39adf0c25f92a82200c4 (diff)
* bignum.c (bigadd_core): Removed.
(bigadd): Use bary_add instead of bigadd_core. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog5
-rw-r--r--bignum.c12
2 files changed, 8 insertions, 9 deletions
diff --git a/ChangeLog b/ChangeLog
index 0f6cdd5..1ce4169 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sat Aug 3 01:20:19 2013 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (bigadd_core): Removed.
+ (bigadd): Use bary_add instead of bigadd_core.
+
Sat Aug 3 00:52:43 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (rb_big2str1): Simplify power_level calculation.
diff --git a/bignum.c b/bignum.c
index faedade..c31f480 100644
--- a/bignum.c
+++ b/bignum.c
@@ -5357,12 +5357,6 @@ bigadd_int(VALUE x, long y)
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)
}
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;
}