From e1617987c82547c0141eb2610ca84ae0fd1abf0e Mon Sep 17 00:00:00 2001 From: akr Date: Thu, 17 Mar 2016 09:50:19 +0000 Subject: * 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 --- internal.h | 1 + 1 file changed, 1 insertion(+) (limited to 'internal.h') 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))) -- cgit v1.2.3