aboutsummaryrefslogtreecommitdiffstats
path: root/internal.h
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 09:50:19 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-17 09:50:19 +0000
commite1617987c82547c0141eb2610ca84ae0fd1abf0e (patch)
tree3b10a09c8e6e5e03fe1db5fbbcf5692d30691cc8 /internal.h
parent3948b107cfacd39b879fabe196eb370dafbd9df8 (diff)
downloadruby-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.h1
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)))