Lines Matching refs:MASK1
71 #define MASK1(n,p) ((~((~(Instruction)0)<<n))<<p) macro
74 #define MASK0(n,p) (~MASK1(n,p))
80 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0)))
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)))
98 ((cast(Instruction, b)<<POS_Bx)&MASK1(SIZE_Bx,POS_Bx))))