diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-28 02:14:58 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-28 02:14:58 +0000 |
commit | e5ff9d58effb093653bcb12ed2865e1509e2b265 (patch) | |
tree | cd87442e70cdbebe9e13f3e7d7f82781dffa20ac /include/ruby | |
parent | 56150eba928407b5b1410219292caf095db5ee63 (diff) | |
download | ruby-e5ff9d58effb093653bcb12ed2865e1509e2b265.tar.gz |
* include/ruby/intern.h (rb_absint_size): Declaration moved from
internal.h to calculate required buffer size to pack integers.
(rb_absint_numwords): Ditto.
(rb_absint_singlebit_p): Ditto.
[ruby-core:42813] [Feature #6065]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'include/ruby')
-rw-r--r-- | include/ruby/intern.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/intern.h b/include/ruby/intern.h index 99e6e3e6cd..4393246744 100644 --- a/include/ruby/intern.h +++ b/include/ruby/intern.h @@ -157,6 +157,9 @@ VALUE rb_big_rshift(VALUE, VALUE); INTEGER_PACK_MSBYTE_FIRST) int rb_integer_pack(VALUE val, void *words, size_t numwords, size_t wordsize, size_t nails, int flags); VALUE rb_integer_unpack(const void *words, size_t numwords, size_t wordsize, size_t nails, int flags); +size_t rb_absint_size(VALUE val, int *nlz_bits_ret); +size_t rb_absint_numwords(VALUE val, size_t word_numbits, size_t *nlz_bits_ret); +int rb_absint_singlebit_p(VALUE val); /* rational.c */ VALUE rb_rational_raw(VALUE, VALUE); |