Home
last modified time | relevance | path

Searched refs:MASK1 (Results 1 – 2 of 2) sorted by relevance

/f-stack/app/redis-5.0.5/deps/lua/src/
H A Dlopcodes.h71 #define MASK1(n,p) ((~((~(Instruction)0)<<n))<<p) macro
74 #define MASK0(n,p) (~MASK1(n,p))
82 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
84 #define GETARG_A(i) (cast(int, ((i)>>POS_A) & MASK1(SIZE_A,0)))
86 ((cast(Instruction, u)<<POS_A)&MASK1(SIZE_A,POS_A))))
88 #define GETARG_B(i) (cast(int, ((i)>>POS_B) & MASK1(SIZE_B,0)))
90 ((cast(Instruction, b)<<POS_B)&MASK1(SIZE_B,POS_B))))
92 #define GETARG_C(i) (cast(int, ((i)>>POS_C) & MASK1(SIZE_C,0)))
94 ((cast(Instruction, b)<<POS_C)&MASK1(SIZE_C,POS_C))))
96 #define GETARG_Bx(i) (cast(int, ((i)>>POS_Bx) & MASK1(SIZE_Bx,0)))
[all …]
/f-stack/freebsd/contrib/openzfs/module/lua/
H A Dlopcodes.h81 #define MASK1(n,p) ((~((~(Instruction)0)<<(n)))<<(p)) macro
84 #define MASK0(n,p) (~MASK1(n,p))
90 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0)))
92 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
94 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0)))
96 ((cast(Instruction, v)<<pos)&MASK1(size,pos))))