nupp.math.i32
Signed 32-bit wrapping arithmetic.
Functions
addfunction
local add: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
andBitsfunction
local andBits: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
fromU32function
local fromU32: nosuspend function(a: uint32): int32
Arguments
| Name | Type | Description |
|---|
a | uint32 | |
Returns
lessOrEqualfunction
local lessOrEqual: nosuspend function(a: int32, b: int32): boolean
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
lessThanfunction
local lessThan: nosuspend function(a: int32, b: int32): boolean
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
mulfunction
local mul: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
notBitsfunction
local notBits: nosuspend function(a: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
Returns
orBitsfunction
local orBits: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
rotateLeftfunction
Arguments
| Name | Type | Description |
|---|
a | int32 | |
count | integer | |
Returns
rotateRightfunction
Arguments
| Name | Type | Description |
|---|
a | int32 | |
count | integer | |
Returns
shiftLeftfunction
Arguments
| Name | Type | Description |
|---|
a | int32 | |
count | integer | |
Returns
shiftRightArithmeticfunction
Arguments
| Name | Type | Description |
|---|
a | int32 | |
count | integer | |
Returns
subfunction
local sub: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns
toU32function
local toU32: nosuspend function(a: int32): uint32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
Returns
wrapfunction
local wrap: nosuspend function(value: integer): int32
Arguments
| Name | Type | Description |
|---|
value | integer | |
Returns
xorBitsfunction
local xorBits: nosuspend function(a: int32, b: int32): int32
Arguments
| Name | Type | Description |
|---|
a | int32 | |
b | int32 | |
Returns