* [Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD
@ 2006-05-06 18:20 Juan RP
0 siblings, 0 replies; only message in thread
From: Juan RP @ 2006-05-06 18:20 UTC (permalink / raw)
To: qemu-devel
Hi,
NetBSD uses the GCC builtin functions of isless*, isgreater* and isunordered(),
the following patch fixes this (we are using it on pkgsrc):
--- fpu/softfloat-native.h.orig 2006-05-03 22:32:58.000000000 +0200
+++ fpu/softfloat-native.h 2006-05-06 19:49:25.000000000 +0200
@@ -33,6 +33,14 @@
#define isunordered(x,y) unordered(x, y)
#endif
+#ifdef __NetBSD__
+#define isgreater(x, y) __builtin_isgreater(x, y)
+#define isgreaterequal(x, y) __builtin_isgreaterequal(x, y)
+#define isless(x, y) __builtin_isless(x, y)
+#define islessequal(x, y) __builtin_islessequal(x, y)
+#define isunordered(x, y) __builtin_isunordered(x, y)
+#endif
+
typedef float float32;
typedef double float64;
#ifdef FLOATX80
--
It would be nice to get it added for the next release, thanks.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-05-06 18:20 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-05-06 18:20 [Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD Juan RP
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).