From ae63c7ebedcaa57017df4cb8ff0494a4705321ee Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Wed, 8 Apr 2015 17:14:12 +0000 Subject: Fix dbl-64 atan in non-default rounding modes (bug 18197). The dbl-64 implementation of atan 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. Tested for x86_64 and x86; no ulps updates needed. [BZ #18197] * sysdeps/ieee754/dbl-64/s_atan.c: Include . (atan): Set FE_TONEAREST mode for internal computations. * math/auto-libm-test-in: Add more tests of atan. * math/auto-libm-test-out: Regenerated. --- ChangeLog | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'ChangeLog') diff --git a/ChangeLog b/ChangeLog index 557871a7f2..12f264b13e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2015-04-08 Joseph Myers + + [BZ #18197] + * sysdeps/ieee754/dbl-64/s_atan.c: Include . + (atan): Set FE_TONEAREST mode for internal computations. + * math/auto-libm-test-in: Add more tests of atan. + * math/auto-libm-test-out: Regenerated. + 2015-04-07 James Cowgill [BZ #17930] -- cgit v1.2.3