All of lore.kernel.org
 help / color / mirror / Atom feed
From: "H . J . Lu" <hjl@lucon.org>
To: Carsten Langgaard <carstenl@mips.com>
Cc: linux-mips@oss.sgi.com
Subject: Re: FPU test on RedHat7.1
Date: Sat, 24 Nov 2001 11:25:47 -0800	[thread overview]
Message-ID: <20011124112547.A22621@lucon.org> (raw)
In-Reply-To: <3BFE6327.986D490C@mips.com>; from carstenl@mips.com on Fri, Nov 23, 2001 at 03:54:31PM +0100

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

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?

Thanks.


H.J.

[-- Attachment #2: ieee.c --]
[-- Type: text/plain, Size: 308 bytes --]

#include <stdio.h>

int main( int argc,char * argv[ ] )
{

  double res, d;
  
  union {
    unsigned long long l;
    double d;
  } op1, op2;

  op1.l = 0x7fefffffffffffffLL;
  op2.l = 0x7ea0000000000000LL;

  d = 2097152;
  res = op1.d - d * op2.d;

  printf("%llx\n", res);
  printf("%20.10e\n", res);

}

  reply	other threads:[~2001-11-24 20:27 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 [this message]
2001-11-26  9:22       ` Carsten Langgaard

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=20011124112547.A22621@lucon.org \
    --to=hjl@lucon.org \
    --cc=carstenl@mips.com \
    --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.