1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* bignum.c (big2str_2bdigits): Renamed from big2str_orig.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42756 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2013-09-01 06:21:52 +00:00
parent 6fe40011a8
commit 34004844cd
2 changed files with 8 additions and 4 deletions

View file

@ -1,3 +1,7 @@
Sun Sep 1 15:21:21 2013 Tanaka Akira <akr@fsij.org>
* bignum.c (big2str_2bdigits): Renamed from big2str_orig.
Sun Sep 1 13:02:24 2013 Tanaka Akira <akr@fsij.org>
* bignum.c: Remove BITSPERDIG >= INT_MAX test. The static assertion,

View file

@ -4194,7 +4194,7 @@ big2str_alloc(struct big2str_struct *b2s, size_t len)
}
static void
big2str_orig(struct big2str_struct *b2s, BDIGIT *xds, size_t xn, size_t taillen)
big2str_2bdigits(struct big2str_struct *b2s, BDIGIT *xds, size_t xn, size_t taillen)
{
size_t j;
BDIGIT_DBL num;
@ -4272,7 +4272,7 @@ big2str_karatsuba(struct big2str_struct *b2s, BDIGIT *xds, size_t xn, size_t wn,
}
if (power_level == 0) {
big2str_orig(b2s, xds, xn, taillen);
big2str_2bdigits(b2s, xds, xn, taillen);
return;
}
@ -4300,7 +4300,7 @@ big2str_karatsuba(struct big2str_struct *b2s, BDIGIT *xds, size_t xn, size_t wn,
memset(b2s->ptr, '0', len);
b2s->ptr += len;
}
big2str_orig(b2s, xds, xn, taillen);
big2str_2bdigits(b2s, xds, xn, taillen);
}
else {
BDIGIT *qds, *rds;
@ -4448,7 +4448,7 @@ rb_big2str1(VALUE x, int base)
b2s_data.ptr = NULL;
if (power_level == 0) {
big2str_orig(&b2s_data, xds, xn, 0);
big2str_2bdigits(&b2s_data, xds, xn, 0);
}
else {
VALUE tmpw = 0;