summaryrefslogtreecommitdiff
path: root/vm_insnhelper.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm_insnhelper.h')
-rw-r--r--vm_insnhelper.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/vm_insnhelper.h b/vm_insnhelper.h
index de2fc5bd39..33e3f434cd 100644
--- a/vm_insnhelper.h
+++ b/vm_insnhelper.h
@@ -166,6 +166,8 @@ enum vm_regan_acttype {
#else
#define FLONUM_2_P(a, b) 0
#endif
+#define FLOAT_HEAP_P(x) (!SPECIAL_CONST_P(x) && RBASIC_CLASS(x) == rb_cFloat)
+#define FLOAT_INSTANCE_P(x) (FLONUM_P(x) || FLOAT_HEAP_P(x))
#ifndef USE_IC_FOR_SPECIALIZED_METHOD
#define USE_IC_FOR_SPECIALIZED_METHOD 1