Wheel IDE

Online demo »

Bit

This file contains a procedures for bitwise operations.

Constants

The bit module.
Source: lib/modules/bit.whl, line: 9
MODULE_BIT11

Module calls for bit functions.
Source: lib/modules/bit.whl, line: 12
BIT_BIT_OR0
BIT_BIT_AND1
BIT_TO_BIT2
BIT_TO_BIT_NOT3
BIT_SHL4
BIT_SHR5

Procedures

bitOr
Source: lib/modules/bit.whl, line: 20

Get the bitwise or value.

proc bitOr(number value, number orValue)
Parameters:
NameTypeDescription
valuenumberThe value.
orValuenumberThe or value.
Return: The or value.


bitAnd
Source: lib/modules/bit.whl, line: 29

Get the bitwise and value.

proc bitAnd(number value, number andValue)
Parameters:
NameTypeDescription
valuenumberThe value.
andValuenumber
Return: The and value.


toBit
Source: lib/modules/bit.whl, line: 38

Return 1 if not 0 else return 0

proc toBit(number value)
Parameters:
NameTypeDescription
valuenumberThe value.
Return: 0 or 1.


toBitNot
Source: lib/modules/bit.whl, line: 46

Return 1 if 0 else return 0

proc toBitNot(number value)
Parameters:
NameTypeDescription
valuenumberThe value.
Return: 0 or 1.


shl
Source: lib/modules/bit.whl, line: 54

Shift value left.

proc shl(number value)
Parameters:
NameTypeDescription
valuenumberThe value.
Return: The shifted value.


shr
Source: lib/modules/bit.whl, line: 63

Shift value righ.

proc shr(number value)
Parameters:
NameTypeDescription
valuenumberThe value.
Return: The shifted value.