All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ben Taylor <sol10x86@cox.net>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] gnu-c99-math.h file
Date: Wed, 26 Apr 2006 3:44:28 -0400	[thread overview]
Message-ID: <15450564.1146037468568.JavaMail.root@eastrmwml05.mgt.cox.net> (raw)

[-- Attachment #1: Type: text/plain, Size: 928 bytes --]


---- Chris Bagwell <chris@cnpbagwell.com> wrote: 
> I just upgraded to current CVS to get all the changes submitted today.  
> The solaris port commits seems to have added a #include "gnu-c99-math.h" 
> file to fpu/softfloat-native.h.

Apologies.  That should have been isolated with a 

#ifdef __sun__
#include "gnu-c99-math.h"
#endif

> 
> This file doesn't exist on my Fedora Core 5 system with gcc32 installed 
> for compatibility.  The mailing archive mentions something about this 
> missing file being a custom file for the solaris port. Should that file 
> only be referenced under solaris?

correct.  I rechecked the patch  I sent to Fabrice and the gnu-c99-math.h 
file is there.  

> Qemu appears to compile fine on linux if I just comment that line out.
> 
> Chris

The following patch and file will correct the issue for solaris and non-solaris
system alike.

Fabrice - can we get this added to CVS?

Regards,

Ben

[-- Attachment #2: fpu-softfloat-patch.diff --]
[-- Type: application/octet-stream, Size: 104 bytes --]

5a6
> #if !defined(_PRESOLARIS10)
7a9,12
> #endif
> #ifdef __sun__
> #include "gnu-c99-math.h"
> #endif

[-- Attachment #3: gnu-c99-math.h --]
[-- Type: application/octet-stream, Size: 651 bytes --]

#if defined(__sun__) && 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)         ((!unordered(x, y)) && ((x) > (y)))
#define isgreaterequal(x, y)    ((!unordered(x, y)) && ((x) >= (y)))
#define isless(x, y)            ((!unordered(x, y)) && ((x) < (y)))
#define islessequal(x, y)       ((!unordered(x, y)) && ((x) <= (y)))

#define isunordered(x,y)        unordered(x, y)

#endif

             reply	other threads:[~2006-04-26  7:44 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-26  7:44 Ben Taylor [this message]
2006-04-26  9:16 ` [Qemu-devel] gnu-c99-math.h file Sylvain Petreolle
  -- strict thread matches above, loose matches on Subject: below --
2006-04-26 12:43 Ben Taylor
2006-04-26  2:04 Chris Bagwell
2006-04-26  3:17 ` Troy Benjegerdes

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=15450564.1146037468568.JavaMail.root@eastrmwml05.mgt.cox.net \
    --to=sol10x86@cox.net \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.