|
From: | Andreas Färber |
Subject: | Re: [Qemu-devel] [6050] fp: add floatXX_is_infinity(), floatXX_is_neg(), floatXX_is_zero() |
Date: | Mon, 15 Dec 2008 18:48:27 +0100 |
Hi, Am 15.12.2008 um 18:14 schrieb Aurelien Jarno:
Revision: 6050http://svn.sv.gnu.org/viewvc/? view=rev&root=qemu&revision=6050Author: aurel32 Date: 2008-12-15 17:14:20 +0000 (Mon, 15 Dec 2008) Log Message: ----------- fp: add floatXX_is_infinity(), floatXX_is_neg(), floatXX_is_zero() Signed-off-by: Aurelien Jarno <address@hidden>
Doesn't IEEE 754 have both a positive and a negative zero?
+INLINE float32 float32_is_neg(float32 a) +{ + return a < 0.0; +}
I would assume that 0.0 == -0.0 so this would not indicate a negative zero as negative. Is that intended?
Andreas
[Prev in Thread] | Current Thread | [Next in Thread] |