Received: from [140.186.70.92] (port=34318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PZLDS-0002Wq-PV for qemu-devel@nongnu.org; Sun, 02 Jan 2011 05:31:11 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PZLDR-0003EZ-G0 for qemu-devel@nongnu.org; Sun, 02 Jan 2011 05:31:10 -0500 Received: from hall.aurel32.net ([88.191.126.93]:54559) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PZLDR-0003EV-7b for qemu-devel@nongnu.org; Sun, 02 Jan 2011 05:31:09 -0500 Date: Sun, 2 Jan 2011 11:31:05 +0100 From: Aurelien Jarno Subject: Re: [Qemu-devel] [PATCH V2] softfloat: Rename float*_is_nan() functions to float*_is_quiet_nan() Message-ID: <20110102103105.GT3615@hall.aurel32.net> References: <1292601366-990-1-git-send-email-peter.maydell@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Sender: Aurelien Jarno List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: "Edgar E. Iglesias" , qemu-devel@nongnu.org, Nathan Froyd On Sat, Jan 01, 2011 at 11:46:16PM +0000, Peter Maydell wrote: > On 17 December 2010 15:56, Peter Maydell wrote: > > The softfloat functions float*_is_nan() were badly misnamed, > > because they return true only for quiet NaNs, not for all NaNs. > > Rename them to float*_is_quiet_nan() to more accurately reflect > > what they do. > > > > This change was produced by: > >  perl -p -i -e 's/_is_nan/_is_quiet_nan/g' $(git grep -l is_nan) > > (with the results manually checked.) > > > > Signed-off-by: Peter Maydell > > Reviewed-by: Nathan Froyd > > Acked-by: Edgar E. Iglesias > > Ping? This patch got no further comments (although it provoked > a long thread on a completely unrelated topic), it's been > reviewed and it still applies to master currently. I think it's > an uncontroversially good idea (~80% of current uses of the > functions are actually buggy because the people who wrote > them were misled by the function name!). > > Can it be applied please? (cc'd Aurelien since you seem to be > committing various missed patches at the moment :-)) > Sorry, I understood there was a conflict with another patch series, and it was better to wait. Committed now. As a side note, there are now a few places where the following code is present: float32_is_quiet_nan(x) || float32_is_signaling_nan(x) It might be a good idea to add back a function float32_is_nan() that this time checks for both quiet and signaling NaN. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net