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/16564] New: Bad overflowing log1p results


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.


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