qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu/target-mips op_helper.c


From: Fabrice Bellard
Subject: Re: [Qemu-devel] qemu/target-mips op_helper.c
Date: Thu, 28 Jun 2007 10:24:37 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.12) Gecko/20050922 Fedora/1.7.12-1.3.1

floatX_to_intY should already do the rounding according to the current rounding direction.

Fabrice.

Thiemo Seufer wrote:
Fabrice Bellard wrote:

IMHO, calling floatX_round_to_int before floatX_to_intY is not useful...


I don't understand. floatX_round_to_int does round/ceil/floor but
keeps the floating point representation. floatX_to_intY converts
the adjusted value to integer representation.

Doing this in two steps may have its own problems like spurious
inexact signalling, but at least the calculated values appear to
be correct.


Thiemo







reply via email to

[Prev in Thread] Current Thread [Next in Thread]