diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-10 12:18:21 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2017-01-10 12:18:21 +0000 |
commit | a5f42689675a0b1d5e1109d090b50fbe1ea58592 (patch) | |
tree | 069bf1584153ce18627f82de0fdf73d1798ebcbc /rational.c | |
parent | 0aff0731afabb3d3627c2ff9196463b3337117f9 (diff) | |
download | ruby-a5f42689675a0b1d5e1109d090b50fbe1ea58592.tar.gz |
numeric.c: short circuit optimization
* numeric.c (fix_mul): short circuit when multiplication of Bignum
and 0 or 1 not to make a Bignum unnecessarily.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57296 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'rational.c')
0 files changed, 0 insertions, 0 deletions