diff options
author | 卜部昌平 <[email protected]> | 2020-07-10 11:49:50 +0900 |
---|---|---|
committer | 卜部昌平 <[email protected]> | 2020-07-13 08:56:18 +0900 |
commit | 9721f477c7f33d64af94fad4a1ca51f739b0b08f (patch) | |
tree | 14330998f33e9040a7038b80899098c016a26241 /numeric.c | |
parent | f66e0212efe4f6572d5e81741e831ab735cc2fee (diff) |
inline Primitive.cexpr!
We can obtain the verbatim source code of Primitive.cexpr!. Why not
paste that content into the JITed program.
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/3305
Diffstat (limited to 'numeric.c')
-rw-r--r-- | numeric.c | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -794,6 +794,12 @@ int_zero_p(VALUE num) return Qfalse; } +VALUE +rb_int_zero_p(VALUE num) +{ + return int_zero_p(num); +} + /* * call-seq: * num.nonzero? -> self or nil @@ -3250,6 +3256,12 @@ int_even_p(VALUE num) } } +VALUE +rb_int_even_p(VALUE num) +{ + return int_even_p(num); +} + /* * call-seq: * int.allbits?(mask) -> true or false |