Skip to content
Snippets Groups Projects
  • Tasos Sahanidis's avatar
    001e4e11
    Correct C FixedMul() off-by-one errors · 001e4e11
    Tasos Sahanidis authored
    The FixedMul() C implementation would produce off by one results,
    causing constant desyncs on 64 bit builds and builds without an
    ASM implementation of the function.
    
    This is fixed by shifting instead of dividing, possibly avoiding
    rounding errors.
    001e4e11
    History
    Correct C FixedMul() off-by-one errors
    Tasos Sahanidis authored
    The FixedMul() C implementation would produce off by one results,
    causing constant desyncs on 64 bit builds and builds without an
    ASM implementation of the function.
    
    This is fixed by shifting instead of dividing, possibly avoiding
    rounding errors.