зеркало из https://github.com/github/ruby.git
* bignum.c (absint_numwords_bytes): Make it static.
(absint_numwords_small): Ditto. (absint_numwords_generic): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41311 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
919cc1e53e
Коммит
78a6a6cad6
|
@ -1,3 +1,9 @@
|
|||
Sat Jun 15 19:35:04 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (absint_numwords_bytes): Make it static.
|
||||
(absint_numwords_small): Ditto.
|
||||
(absint_numwords_generic): Ditto.
|
||||
|
||||
Sat Jun 15 17:14:32 2013 Tanaka Akira <akr@fsij.org>
|
||||
|
||||
* bignum.c (bigmul1_normal): Shrink the result Bignum length.
|
||||
|
|
6
bignum.c
6
bignum.c
|
@ -518,7 +518,7 @@ rb_absint_size(VALUE val, int *nlz_bits_ret)
|
|||
return (de - dp) * SIZEOF_BDIGITS - num_leading_zeros / CHAR_BIT;
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
absint_numwords_bytes(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
|
||||
{
|
||||
/*
|
||||
|
@ -567,7 +567,7 @@ absint_numwords_bytes(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbi
|
|||
return numwords;
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
absint_numwords_small(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
|
||||
{
|
||||
size_t val_numbits = numbytes * CHAR_BIT - nlz_bits_in_msbyte;
|
||||
|
@ -581,7 +581,7 @@ absint_numwords_small(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbi
|
|||
return numwords;
|
||||
}
|
||||
|
||||
size_t
|
||||
static size_t
|
||||
absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
|
||||
{
|
||||
VALUE val_numbits, word_numbits_v;
|
||||
|
|
Загрузка…
Ссылка в новой задаче