bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

isnanl returns true for 2 and 3 on x86 openbsd 3.9


From: Jim Meyering
Subject: isnanl returns true for 2 and 3 on x86 openbsd 3.9
Date: Sun, 28 Oct 2007 23:07:56 +0100

Hi Bruno,

  openbsd$ ./seq 4
  1
  nan
  nan
  4

I tracked this to printf-posix's use of isnanl.
That function from gnulib returns true for the long-double
values of 2 and 3 (exponent is 0 in those cases, yet this
code returns 1:

  if (exponent == 0)
    return (m.word[1] >> 31);

I don't have time to investigate further now.
Maybe tomorrow.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]