From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FcROA-0004pa-9F for qemu-devel@nongnu.org; Sat, 06 May 2006 14:20:22 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FcRO8-0004pO-Di for qemu-devel@nongnu.org; Sat, 06 May 2006 14:20:20 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FcRO8-0004pL-87 for qemu-devel@nongnu.org; Sat, 06 May 2006 14:20:20 -0400 Received: from [84.77.240.0] (helo=mail.xtrarom.org) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FcROZ-0007Iy-5d for qemu-devel@nongnu.org; Sat, 06 May 2006 14:20:47 -0400 Received: from mail.xtrarom.org (localhost [127.0.0.1]) by mail.xtrarom.org (Postfix) with ESMTP id 204CC5996 for ; Sat, 6 May 2006 20:20:38 +0200 (CEST) Received: from nocturno.xtrarom.org (nocturno.xtrarom.org [192.168.1.3]) by mail.xtrarom.org (Postfix) with SMTP id A4C605992 for ; Sat, 6 May 2006 20:20:37 +0200 (CEST) From: Juan RP Message-Id: <20060506202014.7c1bba1c.juan@xtrarom.org> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH] Fix for is{less, greater, unordered}* functions on NetBSD Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Date: Sat, 06 May 2006 18:20:22 -0000 To: qemu-devel@nongnu.org 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.