This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug math/18211] atan2 inaccuracy
- From: "cvs-commit at gcc dot gnu.org" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Wed, 08 Apr 2015 17:33:17 +0000
- Subject: [Bug math/18211] atan2 inaccuracy
- Auto-submitted: auto-generated
- References: <bug-18211-131 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18211
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".
The branch, master has been updated
via 8431838dde9187c061ac64b8d61290e8de021dda (commit)
from ae63c7ebedcaa57017df4cb8ff0494a4705321ee (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=8431838dde9187c061ac64b8d61290e8de021dda
commit 8431838dde9187c061ac64b8d61290e8de021dda
Author: Joseph Myers <joseph@codesourcery.com>
Date: Wed Apr 8 17:32:17 2015 +0000
Fix dbl-64 atan2 in non-default rounding modes (bug 18210, bug 18211).
The dbl-64 implementation of atan2 does computations that expect to
run in round-to-nearest mode, and in other modes the errors can
accumulate to more than the maximum accepted 9ulp. This patch makes
it use FE_TONEAREST internally, similar to other functions with such
issues. Tests that previously produced large errors are added for
atan2 and the closely related carg, clog and clog10 functions.
Tested for x86_64 and x86 and ulps updated accordingly.
[BZ #18210]
[BZ #18211]
* sysdeps/ieee754/dbl-64/e_atan2.c: Include <fenv.h>.
(__ieee754_atan2): Set FE_TONEAREST mode for internal
computations.
* math/auto-libm-test-in: Add more tests of atan2, carg, clog and
clog10.
* math/auto-libm-test-out: Regenerated.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Likewise.
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 11 +
NEWS | 3 +-
math/auto-libm-test-in | 34 ++
math/auto-libm-test-out | 800 +++++++++++++++++++++++++++++++++++++
sysdeps/i386/fpu/libm-test-ulps | 8 +-
sysdeps/ieee754/dbl-64/e_atan2.c | 2 +
sysdeps/x86_64/fpu/libm-test-ulps | 72 ++--
7 files changed, 893 insertions(+), 37 deletions(-)
--
You are receiving this mail because:
You are on the CC list for the bug.