diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 13:04:22 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-09 13:04:22 +0000 |
commit | 86979bf5081e55da869baf7617e78d472206f5b7 (patch) | |
tree | 6833f827b72e7dfae01a2afb6030b538c286e6cc /vm.h | |
parent | e067b33833c7b9fb31c4e953076e67e32b37184f (diff) | |
download | ruby-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.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)) |