diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 10:35:52 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-06-15 10:35:52 +0000 |
commit | 78a6a6cad670a240319251b61f4a304c299ed51d (patch) | |
tree | d7c97760b0a8d65ad5f060dbb16400da381648ef /bignum.c | |
parent | 919cc1e53e77db0c72ea307ffd0a0d4eec8dbeee (diff) | |
download | ruby-78a6a6cad670a240319251b61f4a304c299ed51d.tar.gz |
* 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
Diffstat (limited to 'bignum.c')
-rw-r--r-- | bignum.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |