# add32
inline function add32(a, b)Add 32.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | a value consumed by this operation. |
b | dynamic | — | b value consumed by this operation. |
src/miniquake2/qcommon/checksum.mlProvides miniquake2 qcommon checksum facilities for this project.
miniquake2/qcommon/byteio.ml as bio → src/miniquake2/qcommon/byteio.mlinline function add32(a, b)Add 32.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | a value consumed by this operation. |
b | dynamic | — | b value consumed by this operation. |
function blockChecksum(data, offset, count)Return the block checksum value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | Number of items or units to process. |
inline function choose(x, y, z)Choose state.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
z | dynamic | — | z value consumed by this operation. |
function Com_BlockChecksum(data, offset, count)Return the com block checksum value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | Number of items or units to process. |
inline function majority(x, y, z)Return the majority value.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
z | dynamic | — | z value consumed by this operation. |
function md4(data, offset, count)Return the md 4 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
data | dynamic | — | Input data consumed by the operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |
count | dynamic | — | Number of items or units to process. |
inline function parity(x, y, z)Return the parity value.
| Parameter | Type | Default | Description |
|---|---|---|---|
x | dynamic | — | Horizontal coordinate used by the operation. |
y | dynamic | — | Vertical coordinate used by the operation. |
z | dynamic | — | z value consumed by this operation. |
inline function rotateLeft(value, count)Rotate left.
| Parameter | Type | Default | Description |
|---|---|---|---|
value | dynamic | — | Value consumed or transformed by the operation. |
count | dynamic | — | Number of items or units to process. |
function round1(a, b, c, d, word, shift)Return the round 1 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | a value consumed by this operation. |
b | dynamic | — | b value consumed by this operation. |
c | dynamic | — | c value consumed by this operation. |
d | dynamic | — | d value consumed by this operation. |
word | dynamic | — | word value consumed by this operation. |
shift | dynamic | — | shift value consumed by this operation. |
function round2(a, b, c, d, word, shift)Return the round 2 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | a value consumed by this operation. |
b | dynamic | — | b value consumed by this operation. |
c | dynamic | — | c value consumed by this operation. |
d | dynamic | — | d value consumed by this operation. |
word | dynamic | — | word value consumed by this operation. |
shift | dynamic | — | shift value consumed by this operation. |
function round3(a, b, c, d, word, shift)Return the round 3 value.
| Parameter | Type | Default | Description |
|---|---|---|---|
a | dynamic | — | a value consumed by this operation. |
b | dynamic | — | b value consumed by this operation. |
c | dynamic | — | c value consumed by this operation. |
d | dynamic | — | d value consumed by this operation. |
word | dynamic | — | word value consumed by this operation. |
shift | dynamic | — | shift value consumed by this operation. |
function transform(state, block, offset)Transform state.
| Parameter | Type | Default | Description |
|---|---|---|---|
state | dynamic | — | Mutable state inspected or updated by the operation. |
block | dynamic | — | block value consumed by this operation. |
offset | dynamic | — | Zero-based offset at which processing starts. |