This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/16564] New: Bad overflowing log1p results
- From: "zimmerma+gcc at loria dot fr" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 12 Feb 2014 12:37:43 +0000
- Subject: [Bug math/16564] New: Bad overflowing log1p results
- Auto-submitted: auto-generated
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.