mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (absint_numwords_generic): The char_bit variable changed
to a static constant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
aecf007782
commit
37377b24d1
2 changed files with 6 additions and 1 deletions
|
@ -1,3 +1,8 @@
|
||||||
|
Sun Jul 28 12:41:39 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
|
* bignum.c (absint_numwords_generic): The char_bit variable changed
|
||||||
|
to static constant.
|
||||||
|
|
||||||
Sun Jul 28 12:03:23 2013 Tanaka Akira <akr@fsij.org>
|
Sun Jul 28 12:03:23 2013 Tanaka Akira <akr@fsij.org>
|
||||||
|
|
||||||
* bignum.c: Constify bary_* functions.
|
* bignum.c: Constify bary_* functions.
|
||||||
|
|
2
bignum.c
2
bignum.c
|
@ -3175,8 +3175,8 @@ absint_numwords_small(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbi
|
||||||
static 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)
|
absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_numbits, size_t *nlz_bits_ret)
|
||||||
{
|
{
|
||||||
|
static const BDIGIT char_bit[1] = { CHAR_BIT };
|
||||||
BDIGIT numbytes_bary[bdigit_roomof(sizeof(numbytes))];
|
BDIGIT numbytes_bary[bdigit_roomof(sizeof(numbytes))];
|
||||||
BDIGIT char_bit[1] = { CHAR_BIT };
|
|
||||||
BDIGIT val_numbits_bary[bdigit_roomof(sizeof(numbytes) + 1)];
|
BDIGIT val_numbits_bary[bdigit_roomof(sizeof(numbytes) + 1)];
|
||||||
BDIGIT nlz_bits_in_msbyte_bary[1] = { nlz_bits_in_msbyte };
|
BDIGIT nlz_bits_in_msbyte_bary[1] = { nlz_bits_in_msbyte };
|
||||||
BDIGIT word_numbits_bary[bdigit_roomof(sizeof(word_numbits))];
|
BDIGIT word_numbits_bary[bdigit_roomof(sizeof(word_numbits))];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue