From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37644) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUghG-0005Rc-Cf for qemu-devel@nongnu.org; Mon, 31 Mar 2014 14:12:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUghA-0005yg-8C for qemu-devel@nongnu.org; Mon, 31 Mar 2014 14:12:34 -0400 Received: from mail-la0-f43.google.com ([209.85.215.43]:61434) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUghA-0005wv-1Q for qemu-devel@nongnu.org; Mon, 31 Mar 2014 14:12:28 -0400 Received: by mail-la0-f43.google.com with SMTP id e16so6219712lan.30 for ; Mon, 31 Mar 2014 11:12:27 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <5339AED5.8010101@gmail.com> References: <1395866754-18673-1-git-send-email-tommusta@gmail.com> <1395866754-18673-2-git-send-email-tommusta@gmail.com> <5339AED5.8010101@gmail.com> From: Peter Maydell Date: Mon, 31 Mar 2014 19:12:06 +0100 Message-ID: Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 1/9] softfloat: Introduce float32_to_uint64_round_to_zero List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Tom Musta Cc: "qemu-ppc@nongnu.org" , QEMU Developers On 31 March 2014 19:07, Tom Musta wrote: > On 3/31/2014 12:48 PM, Peter Maydell wrote: >> So, float64_to_uint64_round_to_zero() works by temporarily >> fiddling with the rounding mode and then calling >> float64_to_uint64(). Is there a reason for doing this >> function like this rather than in the same way? > True. But not all of the *_round_to_zero() routines do this, e.g. > float32_to_int64_round_to_zero(). So no matter what I do, it is > inconsistent with something. > > Do you prefer the fiddle-and-reuse approach? (I think I do, actually). > If so, I will respin the patch. I think that would be easier to review for correctness :-) thanks -- PMM