diff options
author | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-20 23:23:50 +0900 |
---|---|---|
committer | Takashi Kokubun <takashikkbn@gmail.com> | 2022-09-23 06:44:28 +0900 |
commit | 4c6e1556b109367f598e276f72feacefc72805fc (patch) | |
tree | 4e8411d731b3447998f9d0ae924ddc2775583399 /mjit_compiler.c | |
parent | 280ff1707e1e0e5f06d9819dc5f8d8deb38b3f6c (diff) |
Bindgen immediate types with builtin
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/6418
Diffstat (limited to 'mjit_compiler.c')
-rw-r--r-- | mjit_compiler.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/mjit_compiler.c b/mjit_compiler.c index f04f7b0c03..2b518feffd 100644 --- a/mjit_compiler.c +++ b/mjit_compiler.c @@ -164,6 +164,9 @@ has_cache_for_send(rb_execution_context_t *ec, VALUE self, VALUE cc_addr, VALUE extern bool rb_splat_or_kwargs_p(const struct rb_callinfo *restrict ci); +#define SIZEOF(type) RB_SIZE2NUM(sizeof(type)) +#define SIGNED_TYPE_P(type) RBOOL((type)(-1) < (type)(0)) + #include "mjit_c.rbinc" #include "mjit_compiler.rbinc" |