Lua BitOps

From Spring
Revision as of 16:18, 5 March 2008 by JK (talk | contribs) (→Bit Operators)
Jump to navigationJump to search

Bit Operators

math.bit_and

 ( int a1 [, int a2 [, ... ] ] ) -> int i

math.bit_or

 ( int a1 [, int a2 [, ... ] ] ) -> int i

math.bit_xor

 ( int a1 [, int a2 [, ... ] ] ) -> int i

math.bit_inv

 ( int a1 ) -> int i

math.bit_bits (result = result | (1 << aX);)

 ( int a1 [, int a2 [, ... ] ] ) -> int i