diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-09-17 21:21:39 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-09-17 21:21:39 +0000 |
commit | 61f893789862db1dfdf188f77cd215bab0814d2c (patch) | |
tree | 9fd0f9b8395f451e24f8ce1c12253847740f8e31 /NEWS | |
parent | b8682397ab2db1aed7f25d0a0c7c81134a97c8c7 (diff) | |
download | glibc-61f893789862db1dfdf188f77cd215bab0814d2c.tar.gz glibc-61f893789862db1dfdf188f77cd215bab0814d2c.tar.xz glibc-61f893789862db1dfdf188f77cd215bab0814d2c.zip |
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 <https://sourceware.org/ml/libc-alpha/2014-08/msg00142.html>. Tested for x86_64. 2015-09-17 Joseph Myers <joseph@codesourcery.com> Andreas Schwab <schwab@suse.de> [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.
Diffstat (limited to 'NEWS')
-rw-r--r-- | NEWS | 10 |
1 files changed, 5 insertions, 5 deletions
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 <regexp.h> has been removed. Programs that require this header must be updated to use <regex.h> instead. |