- Found in:
- cLib
Description
Documentation String
Requirements: None
Documentation Comment
31 bitwise operations. Returns a negative number on errors
Set iBits lower to limit the bitmask to the lower bits for efficiency - Def = 31bits
Set bOp for the bitwise operation. 0 = NOT, 1 = AND(default), 2 = OR, 3 = XOR
Set bWarn to True if you are too lazy to check the error return value, and want a notification
Code from Milagros Osorio http://www.gamesas.com/bitwise-ops-t256983.html
Parameters
inti1
inti2
intiBits=31
intiOp=1
boolbWarn=false
Examples
Auto-Generated Example
int myInt__i1
int myInt__i2
int myInt__iBits
int myInt__iOp
bool myBool__bWarn
int returnedValue = clib.cBitwiseOp(myInt__i1, myInt__i2, myInt__iBits, myInt__iOp, myBool__bWarn)