summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorAaron Patterson <[email protected]>2022-03-07 11:08:15 -0800
committerAaron Patterson <[email protected]>2022-03-10 08:44:28 -0800
commit67faea970857c292ae35dadd103287d4f4449a58 (patch)
tree8658e97b0aedde5ced412ad5a38b6b840eacd389 /object.c
parent702f40628ad0e56cb42337fb2b0c53e0b901ed4d (diff)
Small optimization for the opt_and instruction
This change eagerly performs a bitwise and on the parameters. If both parameters are fixnums, then the result value should also be a fixnum. We can just test the bit on the result and return if it's a fixnum. Otherwise return Qundef.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/5629
Diffstat (limited to 'object.c')
0 files changed, 0 insertions, 0 deletions