mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update a comment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
e214b1b6d3
commit
780ab06a0e
1 changed files with 3 additions and 1 deletions
4
bignum.c
4
bignum.c
|
@ -628,7 +628,9 @@ absint_numwords_generic(size_t numbytes, int nlz_bits_in_msbyte, size_t word_num
|
|||
*
|
||||
* This function returns ((val_numbits * CHAR_BIT + word_numbits - 1) / word_numbits)
|
||||
* where val_numbits is the number of bits of abs(val).
|
||||
* If it overflows, (size_t)-1 is returned.
|
||||
*
|
||||
* This function can overflow if _val_ is very big and word_numbits is less than CHAR_BIT.
|
||||
* When overflow occur, (size_t)-1 is returned.
|
||||
*
|
||||
* If nlz_bits_ret is not NULL and overflow is not occur,
|
||||
* (return_value * word_numbits - val_numbits) is stored in *nlz_bits_ret.
|
||||
|
|
Loading…
Reference in a new issue