# __BIG_ENDIAN__
const __BIG_ENDIAN__ = falseDefines big endian for the m swap subsystem.
src/m_swap.mlNormalizes signed 16-bit values and byte-swaps 16- and 32-bit integers across host endianness.
const __BIG_ENDIAN__ = falseDefines big endian for the m swap subsystem.
function LONG(x)Reverses all four bytes of a 32-bit value and returns the signed result.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
function SHORT(x)Byte-swaps the low 16 bits and returns the result with signed 16-bit interpretation.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
function SwapLONG(x)Reverses all four bytes of an integer's low 32-bit representation.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |
function SwapSHORT(x)Reverses the two bytes in the low 16 bits of an integer.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal map- or screen-space coordinate. |