diff options
author | Joseph Myers <joseph@codesourcery.com> | 2016-06-13 21:43:22 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2016-06-13 21:43:22 +0000 |
commit | a2ae1696f7c6cf269b3a734bce4d9d3620745854 (patch) | |
tree | 92c9bed2652bb67d71de2c930613dd350776b6d4 /dirent/scandirat.c | |
parent | 5e19c4347f484d5f5b44bf8317b38f8f2fd564c1 (diff) | |
download | glibc-a2ae1696f7c6cf269b3a734bce4d9d3620745854.tar glibc-a2ae1696f7c6cf269b3a734bce4d9d3620745854.tar.gz glibc-a2ae1696f7c6cf269b3a734bce4d9d3620745854.tar.bz2 glibc-a2ae1696f7c6cf269b3a734bce4d9d3620745854.zip |
Fix dbl-64 atan2 (sNaN, qNaN) (bug 20252).
The dbl-64 implementation of atan2, passed arguments (sNaN, qNaN),
fails to raise the "invalid" exception. This patch fixes it to add
both arguments, rather than just adding the second argument to itself,
in the case where the second argument is a NaN (which is checked for
before checking for the first argument being a NaN). sNaN tests for
atan2 are added, along with some qNaN tests I noticed were missing but
should have been there by analogy with other tests present.
Tested for x86_64 and x86.
[BZ #20252]
* sysdeps/ieee754/dbl-64/e_atan2.c (__ieee754_atan2): Add both
arguments when second argument is a NaN.
* math/libm-test.inc (atan2_test_data): Add sNaN tests and more
qNaN tests.
Diffstat (limited to 'dirent/scandirat.c')
0 files changed, 0 insertions, 0 deletions