From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I3jie-0002o0-Dq for qemu-devel@nongnu.org; Wed, 27 Jun 2007 22:26:52 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I3jib-0002nm-Vj for qemu-devel@nongnu.org; Wed, 27 Jun 2007 22:26:51 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I3jib-0002nf-Rx for qemu-devel@nongnu.org; Wed, 27 Jun 2007 22:26:49 -0400 Received: from phoenix.bawue.net ([193.7.176.60] helo=mail.bawue.net) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1I3jib-0002p1-CV for qemu-devel@nongnu.org; Wed, 27 Jun 2007 22:26:49 -0400 Date: Thu, 28 Jun 2007 03:19:12 +0100 From: Thiemo Seufer Subject: Re: [Qemu-devel] qemu/target-mips op_helper.c Message-ID: <20070628021912.GB2857@networkno.de> References: <4682E0DB.1040907@bellard.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4682E0DB.1040907@bellard.org> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Fabrice Bellard Cc: qemu-devel@nongnu.org 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