summaryrefslogtreecommitdiffstats
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
commit86979bf5081e55da869baf7617e78d472206f5b7 (patch)
tree6833f827b72e7dfae01a2afb6030b538c286e6cc /vm.h
parente067b33833c7b9fb31c4e953076e67e32b37184f (diff)
downloadruby-86979bf5081e55da869baf7617e78d472206f5b7.tar.gz
ruby-86979bf5081e55da869baf7617e78d472206f5b7.tar.xz
ruby-86979bf5081e55da869baf7617e78d472206f5b7.zip
* 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: http://svn.ruby-lang.org/repos/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 fa131d96e..5a6e47c1c 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))