diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 04:06:15 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-11-14 04:06:15 +0000 |
commit | c0af2a164105834634fbea386b8e41496dcdc99c (patch) | |
tree | 009aa2f20c9680f9d17e7d66378a5ad294c4742a /sample | |
parent | 608ad21517e29cacdbf2a0932489ecb2313a867e (diff) |
complex.c: optimize
* complex.c (f_negative_p): use rb_num_negative_p instead of funcall.
* complex.c (f_kind_of_p, f_numeric_p): cast down to int because
rb_obj_is_kind_of is safe.
* complex.c (f_signbit, f_tpositive_p): remove f_boolcast.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
0 files changed, 0 insertions, 0 deletions