Re: [PATCH 1/7] softfloat: merge floatx80_mod and floatx80_rem

2020-06-06 Thread Richard Henderson
On 6/5/20 11:59 AM, Joseph Myers wrote: > The m68k-specific softfloat code includes a function floatx80_mod that > is extremely similar to floatx80_rem, but computing the remainder > based on truncating the quotient toward zero rather than rounding it > to nearest integer. This is also useful for

[PATCH 1/7] softfloat: merge floatx80_mod and floatx80_rem

2020-06-05 Thread Joseph Myers
The m68k-specific softfloat code includes a function floatx80_mod that is extremely similar to floatx80_rem, but computing the remainder based on truncating the quotient toward zero rather than rounding it to nearest integer. This is also useful for emulating the x87 fprem and fprem1