From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3pIw-0001cA-Da for qemu-devel@nongnu.org; Thu, 28 Jun 2007 04:24:42 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3pIw-0001by-0s for qemu-devel@nongnu.org; Thu, 28 Jun 2007 04:24:42 -0400 Received: from mx1.polytechnique.org ([129.104.30.34]) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3pIv-0003bD-Ig for qemu-devel@nongnu.org; Thu, 28 Jun 2007 04:24:41 -0400 Message-ID: <46837045.3020607@bellard.org> Date: Thu, 28 Jun 2007 10:24:37 +0200 From: Fabrice Bellard MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu/target-mips op_helper.c References: <4682E0DB.1040907@bellard.org> <20070628021912.GB2857@networkno.de> In-Reply-To: <20070628021912.GB2857@networkno.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Thiemo Seufer Cc: qemu-devel@nongnu.org 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 > >