benilla-re systems structs docs

s_mathExitDisabled

global · crt

Address
0x883918 · 4 bytes, up to 0x88391b
Type
int32_t
Meaning
Holds 0, zero-filled; its one writer 0x409a61 is unreached, so the intrinsic exit reports every error
Confidence
verified, proof one
Finding
crt/math#math-error-flags

Finding: Math error flags in crt: math routines

The error exits of these routines set errno and return the value they hold; none calls a _matherr hook. 0x831ac8 holds 0x2694 and nothing writes it, which is what skips the hook; 0x883918, written only by the unreached 0x409a61, stays 0, so the dispatcher's exit reports every error. 0x88391c, set at start-up from 0x40b425, is the processor's FDIV erratum answer, 1 only on a flawed Pentium, so a current CPU runs fprem. __87except takes an error type: 1 marks the masked invalid operation through __handle_exc and 7, a quiet NaN, becomes 1 and skips the marking; __set_errno stores 33 for type 1 and 34 for 2 and 3.

The derivation is in the doc.