__cintrindisp2
function · crt · orchestration
- Address
0x7436c0· 62 bytes, up to0x7436fd- Meaning
- Saves the control word, classes two x87 operands through 0x743997 and runs the exit 0x74378a on its answer
- Confidence
- verified, proof one
- Name from
- the community database (idb)
- 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 \ divisor | normal | zero | NaN | infinity |
|---|---|---|---|---|
| normal | remainder | indefinite | the NaN | indefinite |
| zero | +0 | indefinite | the NaN | indefinite |
| NaN | the NaN | the NaN | a NaN | the NaN |
| infinity | indefinite | indefinite | the NaN | indefinite |
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 1
- __CIfmod crt
Callees 1
- __trandisp2 crt
Calls and jumps by a bare address, from tables/calls.tsv.