Re: math-emu issue with fp divide

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <galak@...>
Cc: <joseph@...>, <linux-kernel@...>, <libc-alpha@...>
Date: Friday, June 13, 2008 - 12:24 am

From: Kumar Gala <galak@kernel.crashing.org>
Date: Thu, 5 Jun 2008 08:38:44 -0500 (CDT)


I haven't been able to look closely at this yet but I think I
happened to stumble over the test case that lead me to that
changeset you are referencing here.

The "actual number" is exactly as listed "0x0.0000000000001p-1022",
I don't know what's so confusing about it :-)))

I think this was distilled by Jakub Jelinek from some glibc test case.

#include <float.h>
#include <fenv.h>
#include <stdio.h>

volatile double d = DBL_MIN;
volatile double e = 0x0.0000000000001p-1022;
volatile double f = 16.0;
int
main (void)
{
  printf ("%x\n", fetestexcept (FE_UNDERFLOW));
  d /= f;
  printf ("%x\n", fetestexcept (FE_UNDERFLOW));
  e /= f;
  printf ("%x\n", fetestexcept (FE_UNDERFLOW));
  return 0;
}
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
math-emu issue with fp divide, Kumar Gala, (Wed Jun 4, 4:38 pm)
Re: math-emu issue with fp divide, Joseph S. Myers, (Wed Jun 4, 5:42 pm)
Re: math-emu issue with fp divide, David Miller, (Wed Jun 4, 5:49 pm)
Re: math-emu issue with fp divide, Kumar Gala, (Thu Jun 5, 9:38 am)
Re: math-emu issue with fp divide, David Miller, (Fri Jun 13, 12:24 am)
Re: math-emu issue with fp divide, Kumar Gala, (Fri Jun 27, 10:15 am)
Re: math-emu issue with fp divide, David Miller, (Wed Oct 22, 1:15 am)
Re: math-emu issue with fp divide, Kumar Gala, (Fri Jun 27, 9:48 am)
Re: math-emu issue with fp divide, David Miller, (Fri Jun 27, 6:54 pm)
Re: math-emu issue with fp divide, Kumar Gala, (Fri Jun 13, 11:49 am)
Re: math-emu issue with fp divide, David Miller, (Wed Jun 4, 5:37 pm)