This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18346] New: ldbl-128 roundl incorrect for exponents in [31, 47]
- From: "jsm28 at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Tue, 28 Apr 2015 16:13:32 +0000
- Subject: [Bug math/18346] New: ldbl-128 roundl incorrect for exponents in [31, 47]
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=18346
Bug ID: 18346
Summary: ldbl-128 roundl incorrect for exponents in [31, 47]
Product: glibc
Version: 2.21
Status: NEW
Severity: normal
Priority: P2
Component: math
Assignee: unassigned at sourceware dot org
Reporter: jsm28 at gcc dot gnu.org
Target Milestone: ---
The implementation of roundl for ldbl-128 involves undefined behavior for
arguments with exponents from 31 to 47 inclusive, from the shift:
u_int64_t i = -1ULL >> (j0 - 48);
For example, on mips64, this means roundl (0xffffffffffff.8p0L) wrongly returns
its argument, which is not an integer.
This is GCC libquadmath bug https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65757
.
Working on a patch.
--
You are receiving this mail because:
You are on the CC list for the bug.