Bit
This file contains a procedures for bitwise operations.
Constants
The bit module.
Source: lib/modules/bit.whl, line: 9
Module calls for bit functions.
Source: lib/modules/bit.whl, line: 12
BIT_BIT_OR | 0 |
BIT_BIT_AND | 1 |
BIT_TO_BIT | 2 |
BIT_TO_BIT_NOT | 3 |
BIT_SHL | 4 |
BIT_SHR | 5 |
Procedures
bitOr
Source: lib/modules/bit.whl, line: 20
Get the bitwise or value.
proc bitOr(number value, number orValue)
Parameters:
Name | Type | Description |
value | number | The value. |
orValue | number | The 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:
Name | Type | Description |
value | number | The value. |
andValue | number | |
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:
Name | Type | Description |
value | number | The 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:
Name | Type | Description |
value | number | The value. |
Return: 0 or 1.
shl
Source: lib/modules/bit.whl, line: 54
Shift value left.
proc shl(number value)
Parameters:
Name | Type | Description |
value | number | The value. |
Return: The shifted value.
shr
Source: lib/modules/bit.whl, line: 63
Shift value righ.
proc shr(number value)
Parameters:
Name | Type | Description |
value | number | The value. |
Return: The shifted value.