Is sysdeps/ieee754/dbl-64/e_remainder.c broken?

H . J . Lu hjl@lucon.org
Thu Nov 15 20:29:00 GMT 2001


Should we check all the functions in sysdeps/ieee754/dbl-64 on x86? We
can hide those asm files in sysdeps/i386/fpu and sysdeps/i386/i686/fpu.



H.J.
---
Delivered-To: hjl@lucon.org
Date: Fri, 23 Nov 2001 15:54:31 +0100
From: Carsten Langgaard <carstenl@mips.com>
X-Mailer: Mozilla 4.75 [en] (X11; U; SunOS 5.7 sun4u)
X-Accept-Language: en
To: "H . J . Lu" <hjl@lucon.org>
Cc: linux-mips@oss.sgi.com
Subject: Re: FPU test on RedHat7.1
Precedence: bulk

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.

/Carsten

-------------- next part --------------
#include <math.h>
#include <stdio.h>

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

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

  op1.l = 0x7fefffffffffffff;
  op2.l = 0x0000000000000001;  

  printf("%llx %llx\n", op1.l, op2.l);
  
  res = remainder(op1.d, op2.d);

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

}


More information about the Libc-alpha mailing list