diff options
author | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-12 02:24:32 +0000 |
---|---|---|
committer | mrkn <mrkn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-12 02:24:32 +0000 |
commit | d611a7c77bc4128dd1edf5503c899df6cf92694c (patch) | |
tree | d4554e1541721f5aafc8254b90bbfc1adf9ccb26 /internal.h | |
parent | fb40c3776a1d339ce78f24fc913e425e780891e7 (diff) |
rational.c: optimize Rational#==
* rational.c (nurat_eqeq_p): optimize Rational#==.
Author: Tadashi Saito <[email protected]>
* numeric.c (rb_int_equal): rename from int_equal and remove static
to be exported.
* internal.h (rb_int_equal): exported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56734 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 4a1c181c9a..48dc266166 100644 --- a/internal.h +++ b/internal.h @@ -1174,6 +1174,7 @@ double rb_int_fdiv_double(VALUE x, VALUE y); VALUE rb_int_pow(VALUE x, VALUE y); VALUE rb_float_pow(VALUE x, VALUE y); VALUE rb_int_cmp(VALUE x, VALUE y); +VALUE rb_int_equal(VALUE x, VALUE y); #if USE_FLONUM #define RUBY_BIT_ROTL(v, n) (((v) << (n)) | ((v) >> ((sizeof(v) * 8) - n))) |