This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug math/3919] Quiet NaNs not propagated quietly by some math functions


------- Additional Comments From jakub at redhat dot com  2007-03-15 13:49 -------
acosh{,f,l} certainly don't raise that:
#define _GNU_SOURCE
#include <math.h>
#include <fenv.h>
#include <stdio.h>

volatile double n = NAN;
volatile double d;
volatile float f;
volatile long double ld;
volatile int i;

int
main (void)
{
  feclearexcept (FE_ALL_EXCEPT);
  d = acosh (n);
  f = acoshf (n);
  ld = acoshl (n);
  printf ("%x\n", fetestexcept (FE_INVALID));
  i = ilogb (n);
  i = ilogbf (n);
  i = ilogbl (n);
  printf ("%x\n", fetestexcept (FE_INVALID));
  d = log (n);
  f = logf (n);
  ld = logl (n);
  printf ("%x\n", fetestexcept (FE_INVALID));
  return 0;
}

prints 0, 1, 1 with both -m32 -fno-builtin and -m64 -fno-builtin on x86_64
with current CVS glibc.

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |WAITING


http://sourceware.org/bugzilla/show_bug.cgi?id=3919

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]