Searched defs:MASK1 (Results 1 - 2 of 2) sorted by relevance

/external/skia/third_party/lua/src/
H A Dlopcodes.h80 #define MASK1(n,p) ((~((~(Instruction)0)<<(n)))<<(p)) macro
83 #define MASK0(n,p) (~MASK1(n,p))
89 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0)))
91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
93 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0)))
95 ((cast(Instruction, v)<<pos)&MASK1(size,pos))))
/external/syslinux/com32/lua/src/
H A Dlopcodes.h80 #define MASK1(n,p) ((~((~(Instruction)0)<<(n)))<<(p)) macro
83 #define MASK0(n,p) (~MASK1(n,p))
89 #define GET_OPCODE(i) (cast(OpCode, ((i)>>POS_OP) & MASK1(SIZE_OP,0)))
91 ((cast(Instruction, o)<<POS_OP)&MASK1(SIZE_OP,POS_OP))))
93 #define getarg(i,pos,size) (cast(int, ((i)>>pos) & MASK1(size,0)))
95 ((cast(Instruction, v)<<pos)&MASK1(size,pos))))

Completed in 2436 milliseconds