[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on
From: |
Juan RP |
Subject: |
[Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD |
Date: |
Sat, 06 May 2006 18:20:22 -0000 |
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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD,
Juan RP <=