From 61f893789862db1dfdf188f77cd215bab0814d2c Mon Sep 17 00:00:00 2001 From: Joseph Myers Date: Thu, 17 Sep 2015 21:21:39 +0000 Subject: Fix sign of zero part from ctan / ctanh when argument infinite (bug 17118). C99/C11 Annex G specifies the sign of the zero part of the result of ctan (x +/- i * Inf) and ctanh (+/-Inf + i * y). This patch fixes glibc to follow that specification, along the lines I described in my review of Andreas's previous patch for this issue . Tested for x86_64. 2015-09-17 Joseph Myers Andreas Schwab [BZ #17118] * math/s_ctan.c (__ctan): Determine sign of zero real part of result when imaginary part of argument is infinite using sine and cosine. * math/s_ctanf.c (__ctanf): Likewise. * math/s_ctanl.c (__ctanl): Likewise. * math/s_ctanh.c (__ctanh): Determine sign of zero imaginary part of result when real part of argument is infinite using sine and cosine. * math/s_ctanhf.c (__ctanhf): Likewise. * math/s_ctanhl.c (__ctanhl): Likewise. * math/libm-test.inc (ctan_test_data): Add more tests of ctan. (ctanh_test_data): Add more tests of ctanh. --- NEWS | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'NEWS') diff --git a/NEWS b/NEWS index 46ad3fa128..d9787014c4 100644 --- a/NEWS +++ b/NEWS @@ -11,11 +11,11 @@ Version 2.23 2542, 2543, 2558, 2898, 4404, 6803, 14341, 14912, 15384, 15786, 15918, 16141, 16296, 16415, 16517, 16519, 16520, 16521, 16734, 16973, 16985, - 17243, 17244, 17787, 17905, 18084, 18086, 18240, 18265, 18370, 18421, - 18480, 18525, 18595, 18610, 18618, 18647, 18661, 18674, 18675, 18681, - 18757, 18778, 18781, 18787, 18789, 18790, 18795, 18796, 18820, 18823, - 18824, 18857, 18863, 18870, 18872, 18873, 18875, 18887, 18921, 18951, - 18952, 18961, 18966, 18967, 18977. + 17118, 17243, 17244, 17787, 17905, 18084, 18086, 18240, 18265, 18370, + 18421, 18480, 18525, 18595, 18610, 18618, 18647, 18661, 18674, 18675, + 18681, 18757, 18778, 18781, 18787, 18789, 18790, 18795, 18796, 18820, + 18823, 18824, 18857, 18863, 18870, 18872, 18873, 18875, 18887, 18921, + 18951, 18952, 18961, 18966, 18967, 18977. * The obsolete header has been removed. Programs that require this header must be updated to use instead. -- cgit 1.4.1