From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1L3yvG-0000lw-9B for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:17:42 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1L3yvE-0000lk-Ta for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:17:41 -0500 Received: from [199.232.76.173] (port=33081 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1L3yvE-0000lh-O6 for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:17:40 -0500 Received: from savannah.gnu.org ([199.232.41.3]:49793 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1L3yvE-0006hJ-P2 for qemu-devel@nongnu.org; Sat, 22 Nov 2008 15:17:41 -0500 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.63) (envelope-from ) id 1L3yvD-0003BQ-5v for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:17:39 +0000 Received: from blueswir1 by cvs.savannah.gnu.org with local (Exim 4.63) (envelope-from ) id 1L3yvC-0003BM-K2 for qemu-devel@nongnu.org; Sat, 22 Nov 2008 20:17:38 +0000 MIME-Version: 1.0 Errors-To: blueswir1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Blue Swirl Message-Id: Date: Sat, 22 Nov 2008 20:17:38 +0000 Subject: [Qemu-devel] [5775] Add native softfloat fpu functions (Christoph Egger) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 5775 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=5775 Author: blueswir1 Date: 2008-11-22 20:17:37 +0000 (Sat, 22 Nov 2008) Log Message: ----------- Add native softfloat fpu functions (Christoph Egger) Modified Paths: -------------- trunk/fpu/softfloat-native.h Modified: trunk/fpu/softfloat-native.h =================================================================== --- trunk/fpu/softfloat-native.h 2008-11-22 20:04:24 UTC (rev 5774) +++ trunk/fpu/softfloat-native.h 2008-11-22 20:17:37 UTC (rev 5775) @@ -8,8 +8,7 @@ #include #endif -#ifdef __OpenBSD__ -/* Get OpenBSD version number */ +#if defined(__OpenBSD__) || defined(__NetBSD__) #include #endif @@ -35,6 +34,25 @@ #define unordered(x, y) (isnan(x) || isnan(y)) #endif +#ifdef __NetBSD__ +#ifndef isgreater +#define isgreater(x, y) __builtin_isgreater(x, y) +#endif +#ifndef isgreaterequal +#define isgreaterequal(x, y) __builtin_isgreaterequal(x, y) +#endif +#ifndef isless +#define isless(x, y) __builtin_isless(x, y) +#endif +#ifndef islessequal +#define islessequal(x, y) __builtin_islessequal(x, y) +#endif +#ifndef isunordered +#define isunordered(x, y) __builtin_isunordered(x, y) +#endif +#endif + + #define isnormal(x) (fpclass(x) >= FP_NZERO) #define isgreater(x, y) ((!unordered(x, y)) && ((x) > (y))) #define isgreaterequal(x, y) ((!unordered(x, y)) && ((x) >= (y)))