qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Juan RP <juan@xtrarom.org>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD
Date: Sat, 06 May 2006 18:20:22 -0000	[thread overview]
Message-ID: <20060506202014.7c1bba1c.juan@xtrarom.org> (raw)


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.

                 reply	other threads:[~2006-05-06 18:20 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060506202014.7c1bba1c.juan@xtrarom.org \
    --to=juan@xtrarom.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).