From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:48929) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTdS-0008WM-S3 for qemu-devel@nongnu.org; Wed, 20 Apr 2011 05:23:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QCTdR-0004ip-MU for qemu-devel@nongnu.org; Wed, 20 Apr 2011 05:23:46 -0400 Received: from hall.aurel32.net ([88.191.126.93]:43131) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QCTdR-0004ig-ED for qemu-devel@nongnu.org; Wed, 20 Apr 2011 05:23:45 -0400 Date: Wed, 20 Apr 2011 11:22:49 +0200 From: Aurelien Jarno Message-ID: <20110420092249.GE6388@volta.aurel32.net> References: <1303160412-8107-1-git-send-email-aurelien@aurel32.net> <1303160412-8107-10-git-send-email-aurelien@aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Subject: Re: [Qemu-devel] [PATCH 09/20] softfloat-native: add float*_is_any_nan() functions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell Cc: qemu-devel@nongnu.org On Tue, Apr 19, 2011 at 01:42:00PM +0100, Peter Maydell wrote: > On 18 April 2011 22:00, Aurelien Jarno wrote: > > > @@ -511,4 +530,11 @@ int floatx80_is_quiet_nan( floatx80 a1 ) > >     return ( ( u.i.high & 0x7FFF ) == 0x7FFF ) && (uint64_t) ( u.i.low<<1 ); > >  } > > > > +int floatx80_is_any_nan( floatx80 a1 ) > > +{ > > +    floatx80u u; > > +    u.f = a1; > > +    return ((u.i.high & 0x7FFF) == 0x7FFF) && ( u.i.low<<1 ); > > +} > > + > >  #endif > > As you can just see from the context, the new function is > actually identical to the existing floatx80_is_quiet_nan(), > but the latter is wrong, not this patch :-) > > Nobody seems to use floatx80_is_quiet_nan() so if we're just > going to nuke softfloat-native shortly there's no point fixing > it I guess. > IIRC, we already discovered that when changing the name of the nan() functions. I also don't plan to fix it, it's one more reason to kill softfloat-native. -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net