benilla-re systems structs docs

CompareMatrix4

function · cmath · orchestration

Address
0x7bc1a0 · 239 bytes, up to 0x7bc28e
Signature
uint32_t __fastcall (const NTempest::C44Matrix *a, const NTempest::C44Matrix *b)
Meaning
Returns in al whether any of the 16 entries of two matrices differs under the float compare
Confidence
verified, proof two
Finding
cmath/matrices#sum-scalar-and-product
Test
cmath::mat4_ne

Finding: Sum, scalar and product in cmath: matrices

0x7bc290 (ecx out, edx a, b on the stack, ret 4) stores a[i] + b[i] for the 16 entries; 0x7bc8e0 (ecx out, edx m, s on the stack) stores s·m[i]; 0x7bc1a0 (ecx a, edx b) returns in al whether any pair differs under the float compare, so −0 equals 0 and NaN differs. 0x7bc6a0 (ecx out, edx a, b on the stack) stores the product a·b, out[4i + j] row i of a by column j of b, and returns out; 0x7bc8c0 gives entry 0 and 0x7bce30 (ecx A, B on the stack) sets A = A·B in place and returns A. 0x7bdf50 stores sixteen floats from the stack.

The derivation is in the doc.

Callers 2

Callees 0

None by a direct call or jump.

Calls and jumps by a bare address, from tables/calls.tsv.