From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HloFS-0001Ae-1z for qemu-devel@nongnu.org; Wed, 09 May 2007 11:38:38 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HloFQ-0001AP-K6 for qemu-devel@nongnu.org; Wed, 09 May 2007 11:38:37 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HloFQ-0001AM-HL for qemu-devel@nongnu.org; Wed, 09 May 2007 11:38:36 -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 1Hlo8C-0007ln-V9 for qemu-devel@nongnu.org; Wed, 09 May 2007 11:31:09 -0400 Date: Wed, 9 May 2007 16:26:02 +0100 Subject: Re: [Qemu-devel] [PATCH, RFC] Fix softfloat NaN handling Message-ID: <20070509152602.GB29867@networkno.de> References: <20070509132047.GA29921@networkno.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: From: Thiemo Seufer Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Blue Swirl Cc: qemu-devel@nongnu.org Blue Swirl wrote: > On 5/9/07, Thiemo Seufer wrote: > >Hello All, > > > >The relevant IEEE standards don't define if a set or a clear bit is > >used to distinguish between QNaN and SNaN. MIPS, and apparently > >PA RISC, made a different choice than the rest of the industry. > > On Sparc, the rule is as follows: > > SNaN: sign undefined, exponent 255, mantissa 0xxx...and at least one > bit must be nonzero > QNaN: sign undefined, exponent 255, mantissa 1xxx... > > Is this the same as MIPS? For MIPS, and allegedly HPPA, the meaning of the highest bit in the mantissa is inverted. IOW, 0xxx... is a QNaN, 1xxx... is a SNaN. The rest is the same, and AFAIK mandated by the standard. Thiemo