diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-17 09:50:19 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-17 09:50:19 +0000 |
commit | e1617987c82547c0141eb2610ca84ae0fd1abf0e (patch) | |
tree | 3b10a09c8e6e5e03fe1db5fbbcf5692d30691cc8 /internal.h | |
parent | 3948b107cfacd39b879fabe196eb370dafbd9df8 (diff) | |
download | ruby-e1617987c82547c0141eb2610ca84ae0fd1abf0e.tar.gz |
* enum.c (enum_inject): Implement the specialized code for sum of
integers including Bignums.
* internal.h (rb_fix_plus): Declared to be usable from enum_inject.
* numeric.c (rb_fix_plus): Defined.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@54147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'internal.h')
-rw-r--r-- | internal.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal.h b/internal.h index 222a8ba8dc..89fcea62fd 100644 --- a/internal.h +++ b/internal.h @@ -958,6 +958,7 @@ int rb_num_negative_p(VALUE); VALUE rb_int_succ(VALUE num); VALUE rb_int_pred(VALUE num); VALUE rb_dbl_hash(double d); +VALUE rb_fix_plus(VALUE x, VALUE y); #if USE_FLONUM #define RUBY_BIT_ROTL(v, n) (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |