Lua BitOps: Difference between revisions

From Spring
Jump to navigationJump to search
Argh (talk | contribs)
m Font colors, 2 (used #55ee99)
Aegis (talk | contribs)
No edit summary
Line 1: Line 1:
[[Engine_Development|Development]] < [[Lua_Scripting|Lua Scripting]] < {{FULLPAGENAME}}
== Bit Operators ==
== Bit Operators ==
'''math.bit_and'''
'''math.bit_and'''

Revision as of 18:10, 31 August 2009

Development < Lua Scripting < Lua BitOps

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