1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-19 00:02:09 +03:00

Fix tan, tanl for large inputs.

This commit is contained in:
Joseph Myers
2012-03-16 20:05:04 +00:00
parent 6a1bd2a100
commit 11b90b9f50
13 changed files with 221 additions and 168 deletions

View File

@@ -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);