Lua BitOps

From Spring
Revision as of 20:55, 27 October 2008 by Argh (talk | contribs) (Font colors, 2 (used #55ee99))
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