* [Qemu-devel] [5775] Add native softfloat fpu functions (Christoph Egger)
@ 2008-11-22 20:17 Blue Swirl
0 siblings, 0 replies; only message in thread
From: Blue Swirl @ 2008-11-22 20:17 UTC (permalink / raw)
To: qemu-devel
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 <fenv.h>
#endif
-#ifdef __OpenBSD__
-/* Get OpenBSD version number */
+#if defined(__OpenBSD__) || defined(__NetBSD__)
#include <sys/param.h>
#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)))
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-11-22 20:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-22 20:17 [Qemu-devel] [5775] Add native softfloat fpu functions (Christoph Egger) Blue Swirl
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).