MiniQuake2

src/miniquake2/qcommon/checksum.ml

Provides miniquake2 qcommon checksum facilities for this project.

Package
miniquake2.qcommon.checksum
Reachable
Yes

Imports

Declarations

add32

inline function add32(a, b)

Add 32.

ParameterTypeDefaultDescription
adynamic—a value consumed by this operation.
bdynamic—b value consumed by this operation.

View source

blockChecksum

function blockChecksum(data, offset, count)

Return the block checksum value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.

View source

choose

inline function choose(x, y, z)

Choose state.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
zdynamic—z value consumed by this operation.

View source

Com_BlockChecksum

function Com_BlockChecksum(data, offset, count)

Return the com block checksum value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.

View source

majority

inline function majority(x, y, z)

Return the majority value.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
zdynamic—z value consumed by this operation.

View source

md4

function md4(data, offset, count)

Return the md 4 value.

ParameterTypeDefaultDescription
datadynamic—Input data consumed by the operation.
offsetdynamic—Zero-based offset at which processing starts.
countdynamic—Number of items or units to process.

View source

parity

inline function parity(x, y, z)

Return the parity value.

ParameterTypeDefaultDescription
xdynamic—Horizontal coordinate used by the operation.
ydynamic—Vertical coordinate used by the operation.
zdynamic—z value consumed by this operation.

View source

rotateLeft

inline function rotateLeft(value, count)

Rotate left.

ParameterTypeDefaultDescription
valuedynamic—Value consumed or transformed by the operation.
countdynamic—Number of items or units to process.

View source

round1

function round1(a, b, c, d, word, shift)

Return the round 1 value.

ParameterTypeDefaultDescription
adynamic—a value consumed by this operation.
bdynamic—b value consumed by this operation.
cdynamic—c value consumed by this operation.
ddynamic—d value consumed by this operation.
worddynamic—word value consumed by this operation.
shiftdynamic—shift value consumed by this operation.

View source

round2

function round2(a, b, c, d, word, shift)

Return the round 2 value.

ParameterTypeDefaultDescription
adynamic—a value consumed by this operation.
bdynamic—b value consumed by this operation.
cdynamic—c value consumed by this operation.
ddynamic—d value consumed by this operation.
worddynamic—word value consumed by this operation.
shiftdynamic—shift value consumed by this operation.

View source

round3

function round3(a, b, c, d, word, shift)

Return the round 3 value.

ParameterTypeDefaultDescription
adynamic—a value consumed by this operation.
bdynamic—b value consumed by this operation.
cdynamic—c value consumed by this operation.
ddynamic—d value consumed by this operation.
worddynamic—word value consumed by this operation.
shiftdynamic—shift value consumed by this operation.

View source

transform

function transform(state, block, offset)

Transform state.

ParameterTypeDefaultDescription
statedynamic—Mutable state inspected or updated by the operation.
blockdynamic—block value consumed by this operation.
offsetdynamic—Zero-based offset at which processing starts.

View source