All of lore.kernel.org
 help / color / mirror / Atom feed
From: Carsten Langgaard <carstenl@mips.com>
To: "H . J . Lu" <hjl@lucon.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: FPU test on RedHat7.1
Date: Mon, 26 Nov 2001 10:22:40 +0100	[thread overview]
Message-ID: <3C0209E0.43747D9E@mips.com> (raw)
In-Reply-To: 20011124112547.A22621@lucon.org

"H . J . Lu" wrote:

> On Fri, Nov 23, 2001 at 03:54:31PM +0100, Carsten Langgaard wrote:
> > The file sysdeps/ieee754/dbl-64/e_remainder.c seems to have changed since
> > glibc-2.2.2.
> > I have attached the glibc-2.2.2 remainder file, which seems to work
> > better.
> >
>
> I believe it is a MIPS FPU related issue. glibc tries to do
>
> 1.7976931348623157e+308 - 8.5720688574901386e+301 * 2097152
>
> and expects -1.9958403095e+292. However, on mips, I got -inf. Could you
> please look into it?

I believe this is ok, 8.5720688574901386e+301 * 2097152 is greater than
1.7976931348623157e+308 (which is the highest floating point number you can
represent).
So 1.7976931348623157e+308 - 8.5720688574901386e+301 * 2097152 do give -Inf on
(I guess) all other architectures than i386, which have a double extended (80
bit / 64 bit mantisse) precision.

I have tried the same calculation on a Sun (Sparc) and it also gives -Inf.
So I guess the problem is in the e_remainder function.


>
> Thanks.
>
> H.J.
>
>   ------------------------------------------------------------------------
>
>    ieee.cName: ieee.c
>          Type: Plain Text (text/plain)

--
_    _ ____  ___   Carsten Langgaard   Mailto:carstenl@mips.com
|\  /|||___)(___   MIPS Denmark        Direct: +45 4486 5527
| \/ |||    ____)  Lautrupvang 4B      Switch: +45 4486 5555
  TECHNOLOGIES     2750 Ballerup       Fax...: +45 4486 5556
                   Denmark             http://www.mips.com

      reply	other threads:[~2001-11-26 10:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-11-22 15:37 FPU test on RedHat7.1 Carsten Langgaard
2001-11-22 18:39 ` H . J . Lu
2001-11-23 14:54   ` Carsten Langgaard
2001-11-24 19:25     ` H . J . Lu
2001-11-26  9:22       ` Carsten Langgaard [this message]

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=3C0209E0.43747D9E@mips.com \
    --to=carstenl@mips.com \
    --cc=hjl@lucon.org \
    --cc=linux-mips@oss.sgi.com \
    /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.