Re: [Qemu-devel] [V4 PATCH 03/22] softfloat: Fix float64_to_uint64_round_to_zero

2013-12-19 Thread Peter Maydell
On 18 December 2013 20:19, Tom Musta wrote: > The float64_to_uint64_round_to_zero routine is incorrect. > > For example, the following test pattern: > > 46697351FF4AEC29 / 0x1.97351ff4aec29p+103 > > currently produces 8000 instead of . > > This patch re-implements t

[Qemu-devel] [V4 PATCH 03/22] softfloat: Fix float64_to_uint64_round_to_zero

2013-12-18 Thread Tom Musta
The float64_to_uint64_round_to_zero routine is incorrect. For example, the following test pattern: 46697351FF4AEC29 / 0x1.97351ff4aec29p+103 currently produces 8000 instead of . This patch re-implements the routine to temporarily force the rounding mode and use t