- Documentation
- Shared functions
- bitLRotate
Function
bitLRotate
Rotates bits left: bits leaving on the left come back on the right.
Syntax
int bitLRotate(int value, int count)Arguments
valueint- The number.
countint- Rotation count.
Returns
The result.
Example
print(string.format("%08X", bitLRotate(0x80000001, 1))) -- 00000003