From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "behavior" |
|---|
| subject | "Software:Doom" |
|---|
| claim | "FixedMul is (int64)a*b >> 16; FixedDiv returns INT_MIN or INT_MAX (sign of a^b) when (abs(a) >> 14) >= abs(b) instead of dividing, and FixedDiv2 does the real division." |
|---|
| scope | | level | "software" |
|---|
| applies_to | "Software:Doom" |
|---|
| observed_in | |
|---|
|
|---|
| data | | function | "FixedMul / FixedDiv / FixedDiv2" |
|---|
| effect | "16.16 fixed-point multiply and saturating divide" |
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "linuxdoom-1.10/m_fixed.c and m_fixed.h (FRACBITS 16); README.asm has the i386 assembly versions used by the DOS build." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "FixedDiv overflow guard" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T03:43:17.357Z" |
|---|
| verifications | |
|---|