Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1DJoZA-00079E-8W for qemu-devel@nongnu.org; Fri, 08 Apr 2005 04:10:12 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1DJoZ5-00077J-Fk for qemu-devel@nongnu.org; Fri, 08 Apr 2005 04:10:07 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1DJoZ2-00075O-7Z for qemu-devel@nongnu.org; Fri, 08 Apr 2005 04:10:04 -0400 Received: from [192.76.135.70] (helo=kurt.tools.de) by monty-python.gnu.org with esmtp (TLS-1.0:DHE_RSA_3DES_EDE_CBC_SHA:24) (Exim 4.34) id 1DJowr-0001ad-AT for qemu-devel@nongnu.org; Fri, 08 Apr 2005 04:34:41 -0400 Message-Id: <200504080833.j388Xfur016496@imap3.tools.intra> Date: Fri, 8 Apr 2005 10:33:41 +0200 (CEST) From: Juergen Keil Subject: Re: [Qemu-devel] gnu-c99-math.h include file MIME-Version: 1.0 Content-Type: TEXT/plain; charset=us-ascii Content-MD5: C/8xLSO4Pn0YM26zoUe+kQ== Reply-To: Juergen Keil , qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: sol10x86@cox.net, qemu-devel@nongnu.org > Downloaded a tarball of the latest cvs bits to see about > getting the latest changes melded with the working solaris > host bits. > > In fpu/softfloat-native.h, there is an include > #include "gnu-c99-math.h" that is not part of > any of the gnu software I have loaded. I've invented this file, to work around the problem that some of the new C99 "math.h" features/macros like isnormal(), isgreater(), isunordered(), etc... cannot be compiled with GNUC 3.4.x on Solaris 10 (the new macros can only be used with Sun's C-Compiler) % cat gnu-c99-math.h #if defined(__SVR4) && defined(__GNUC__) /* * C99 7.12.3 classification macros * and * C99 7.12.14 comparison macros * * ... do not work on Solaris 10 using GNU CC 3.4.x. * Try to workaround the missing / broken C99 math macros. */ #include #define isnormal(x) (fpclass(x) >= FP_NZERO) #define isgreater(x, y) ((x) > (y)) #define isgreaterequal(x, y) ((x) >= (y)) #define isless(x, y) ((x) < (y)) #define islessequal(x, y) ((x) <= (y)) #define isunordered(x,y) unordered(x, y) #endif