benilla-re systems structs docs

0x73f914

function · crt · primitive

Address
0x73f914 · 30 bytes, up to 0x73f931
Meaning
Repeats fprem on st0 by st1 until C2 clears, or calls the software remainder 0x74450c when 0x88391c is 1
Confidence
verified, proof one
Finding
crt/math#remainder-dispatch
Test
crt::crt_fmod_difftest

Finding: Remainder dispatch in crt: math routines

__CIfmod (0x73f90a) loads the record 0x875ea0 and enters __cintrindisp2 (0x7436c0), which sets the control word 0x133f, classes the divisor and the dividend with fxam as normal (a double subnormal included), zero, NaN or infinity, and jumps to the table entry 0x875eb0 + 16·dividend + 4·divisor. The remainder of two normal operands is fprem's, looped until C2 clears, with the dividend's sign. The other answers:

dividend \ divisornormalzeroNaNinfinity
normalremainderindefinitethe NaNindefinite
zero+0indefinitethe NaNindefinite
NaNthe NaNthe NaNa NaNthe NaN
infinityindefiniteindefinitethe NaNindefinite

The indefinite sets errno to 33, a NaN does as well; of two NaNs the larger significand answers.

The derivation is in the doc.

Callers 0

None by a direct call or jump.

Callees 1

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