summaryrefslogtreecommitdiff
path: root/vm.h
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-09 13:04:22 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-11-09 13:04:22 +0000
commit6e572060eba0d526125bf3044104747062f6f79a (patch)
tree6833f827b72e7dfae01a2afb6030b538c286e6cc /vm.h
parent28c0aec1d889cfb3447c708a790b0acb95607e2f (diff)
* vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.
* insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm.h')
-rw-r--r--vm.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vm.h b/vm.h
index fa131d96e7..5a6e47c1c8 100644
--- a/vm.h
+++ b/vm.h
@@ -236,7 +236,8 @@ default: \
#define FRAME_MAGIC_IFUNC 0x81
#define FRAME_MAGIC_EVAL 0x91
#define FRAME_MAGIC_LAMBDA 0xa1
-#define FRAME_MAGIC_MASK 0xff
+#define FRAME_MAGIC_MASK_BITS 8
+#define FRAME_MAGIC_MASK (~(~0<<FRAME_MAGIC_MASK_BITS))
#define VM_FRAME_FLAG(type) ((VALUE)((type) & FRAME_MAGIC_MASK))