public inbox for glibc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug math/16564] New: Bad overflowing log1p results
@ 2014-02-12 12:37 zimmerma+gcc at loria dot fr
  2014-05-14 12:39 ` [Bug math/16564] " cvs-commit at gcc dot gnu.org
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: zimmerma+gcc at loria dot fr @ 2014-02-12 12:37 UTC (permalink / raw)
  To: glibc-bugs

https://sourceware.org/bugzilla/show_bug.cgi?id=16564

            Bug ID: 16564
           Summary: Bad overflowing log1p results
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: math
          Assignee: unassigned at sourceware dot org
          Reporter: zimmerma+gcc at loria dot fr

on x86_64 with extended precision:

Testing function log1p for exponent 0 [seed=16203].
 rounding mode MPFR_RNDU:
      wrong overflow flag: mpfr gives 0, library 8
      x=f.fffffffffffffff0@4095
      library gives @Inf@
      mpfr    gives 2.c5c85fdf473de6b0@3

Since log(1+x) is always in the representable range, we should not get +Inf.
(Presumably 1+x is computed with rounding up and yields +Inf, then log(+Inf)
gives +Inf.)

-- 
You are receiving this mail because:
You are on the CC list for the bug.


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-06-13  8:38 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-02-12 12:37 [Bug math/16564] New: Bad overflowing log1p results zimmerma+gcc at loria dot fr
2014-05-14 12:39 ` [Bug math/16564] " cvs-commit at gcc dot gnu.org
2014-05-14 12:41 ` jsm28 at gcc dot gnu.org
2014-06-13  8:38 ` fweimer at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).