diff options
author | Joseph Myers <joseph@codesourcery.com> | 2012-03-16 20:05:04 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2012-03-16 20:05:37 +0000 |
commit | 11b90b9f504df5b2da91ce3a06c1657d99e4a95f (patch) | |
tree | 838df025f383c47096e24ac377aa45d48d9200b7 /math | |
parent | 6a1bd2a100c958d30bbfe8c9b8f9071d24b7c3f4 (diff) | |
download | glibc-11b90b9f504df5b2da91ce3a06c1657d99e4a95f.tar.gz |
Fix tan, tanl for large inputs.
Diffstat (limited to 'math')
-rw-r--r-- | math/libm-test.inc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index fb82926183..8bcaa8869f 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -6796,11 +6796,16 @@ tan_test (void) TEST_f_f (tan, M_PI_4l, 1); TEST_f_f (tan, 0.75L, 0.931596459944072461165202756573936428L); -#ifdef TEST_FLOAT - /* Enable for double and long double once x86 and x86-64 - implementations are fixed. */ TEST_f_f (tan, 0x1p65, -0.0472364872359047946798414219288370688827L); TEST_f_f (tan, -0x1p65, 0.0472364872359047946798414219288370688827L); + +#ifndef TEST_FLOAT + TEST_f_f (tan, 1e22, -1.628778225606898878549375936939548513545L); + TEST_f_f (tan, 0x1p1023, -0.6814476476066215012854144040167365190368L); +#endif + +#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 + TEST_f_f (tan, 0x1p16383L, 0.422722393732022337800504160054440141575L); #endif END (tan); |