Re: [Qemu-devel] [PATCH] softfloat: Fix division

2018-10-03 Thread Richard Henderson
On 10/3/18 4:28 AM, Alex Bennée wrote: > > Richard Henderson writes: > >> The __udiv_qrnnd primitive that we nicked from gmp requires its >> inputs to be normalized. We were not doing that. Because the >> inputs are nearly normalized already, finishing that is trivial. >> Inline div128to64 int

Re: [Qemu-devel] [PATCH] softfloat: Fix division

2018-10-03 Thread Alex Bennée
Richard Henderson writes: > The __udiv_qrnnd primitive that we nicked from gmp requires its > inputs to be normalized. We were not doing that. Because the > inputs are nearly normalized already, finishing that is trivial. > Inline div128to64 into its one user, because it is no longer a > gene

Re: [Qemu-devel] [PATCH] softfloat: Fix division

2018-10-02 Thread Emilio G. Cota
On Tue, Oct 02, 2018 at 14:53:47 -0500, Richard Henderson wrote: > The __udiv_qrnnd primitive that we nicked from gmp requires its > inputs to be normalized. We were not doing that. Because the > inputs are nearly normalized already, finishing that is trivial. > Inline div128to64 into its one use

[Qemu-devel] [PATCH] softfloat: Fix division

2018-10-02 Thread Richard Henderson
The __udiv_qrnnd primitive that we nicked from gmp requires its inputs to be normalized. We were not doing that. Because the inputs are nearly normalized already, finishing that is trivial. Inline div128to64 into its one user, because it is no longer a general-purpose routine. Fixes: cf07323d494