From 691b05e83c41d089c4f6c7a8bbac9dd63f36a144 Mon Sep 17 00:00:00 2001 From: mame Date: Mon, 1 Jan 2018 13:18:55 +0000 Subject: vm_core.h: make the algorithm of get_insn_info selectable Currently, VM_INSN_INFO_TABLE_IMPL == 0 means linear search, and VM_INSN_INFO_TABLE_IMPL == 1 means binary search. I plan to add succinct bitvector algorithm later. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61537 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_core.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'vm_core.h') diff --git a/vm_core.h b/vm_core.h index 0d08875afd..16ee74b28e 100644 --- a/vm_core.h +++ b/vm_core.h @@ -56,6 +56,13 @@ #define RUBY_VM_THREAD_MODEL 2 +/* + * implementation selector of get_insn_info algorithm + * 0: linear search + * 1: binary search + */ +#define VM_INSN_INFO_TABLE_IMPL 1 + #include "ruby/ruby.h" #include "ruby/st.h" -- cgit v1.2.3