From: Juergen Keil <jk@tools.de>
To: sol10x86@cox.net, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] gnu-c99-math.h include file
Date: Fri, 8 Apr 2005 10:33:41 +0200 (CEST) [thread overview]
Message-ID: <200504080833.j388Xfur016496@imap3.tools.intra> (raw)
> 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 <ieeefp.h>
#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
next reply other threads:[~2005-04-08 8:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-08 8:33 Juergen Keil [this message]
2005-04-08 11:39 ` [Qemu-devel] gnu-c99-math.h include file Paul Brook
-- strict thread matches above, loose matches on Subject: below --
2005-04-07 19:32 Ben Taylor
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=200504080833.j388Xfur016496@imap3.tools.intra \
--to=jk@tools.de \
--cc=qemu-devel@nongnu.org \
--cc=sol10x86@cox.net \
/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).