summaryrefslogtreecommitdiff
path: root/numeric.c
diff options
context:
space:
mode:
author卜部昌平 <shyouhei@ruby-lang.org>2020-07-10 11:49:50 +0900
committer卜部昌平 <shyouhei@ruby-lang.org>2020-07-13 08:56:18 +0900
commit9721f477c7f33d64af94fad4a1ca51f739b0b08f (patch)
tree14330998f33e9040a7038b80899098c016a26241 /numeric.c
parentf66e0212efe4f6572d5e81741e831ab735cc2fee (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.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/numeric.c b/numeric.c
index b883b30440..b59c3198cc 100644
--- a/numeric.c
+++ b/numeric.c
@@ -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