diff options
author | Joseph Myers <joseph@codesourcery.com> | 2013-12-05 13:54:50 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2013-12-05 13:54:50 +0000 |
commit | bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e (patch) | |
tree | dedd0ec1962d0cdbe638a5ae3fb556dfa97db3a8 /math/libm-test.inc | |
parent | c6bb4f23b036ab3ae972583bf1186a6131ce4968 (diff) | |
download | glibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.tar.gz glibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.tar.xz glibc-bbf37bdc12c0370a0ac2fa597cddd660bad6ec5e.zip |
Move TEST_f_f tests for [l-y]* functions from libm-test.inc to auto-libm-test-in.
Diffstat (limited to 'math/libm-test.inc')
-rw-r--r-- | math/libm-test.inc | 844 |
1 files changed, 35 insertions, 809 deletions
diff --git a/math/libm-test.inc b/math/libm-test.inc index a4b2d51ef9..1d12d9177c 100644 --- a/math/libm-test.inc +++ b/math/libm-test.inc @@ -267,12 +267,20 @@ struct ulp_data #define TEST_COND_before_rounding (!TININESS_AFTER_ROUNDING) #define TEST_COND_after_rounding TININESS_AFTER_ROUNDING +#ifdef __x86_64__ +# define TEST_COND_x86_64 1 +#else +# define TEST_COND_x86_64 0 +#endif + +#ifdef __i386__ +# define TEST_COND_x86 1 +#else +# define TEST_COND_x86 0 +#endif + /* Various constants (we must supply them precalculated for accuracy). */ #define M_PI_6l .52359877559829887307710723054658383L -#define M_E2l 7.389056098930650227230427460575008L -#define M_E3l 20.085536923187667740928529654581719L -#define M_2_SQRT_PIl 3.5449077018110320545963349666822903L /* 2 sqrt (M_PIl) */ -#define M_SQRT_PIl 1.7724538509055160272981674833411451L /* sqrt (M_PIl) */ #define M_LOG_SQRT_PIl 0.57236494292470008707171367567652933L /* log(sqrt(M_PIl)) */ #define M_LOG_2_SQRT_PIl 1.265512123484645396488945797134706L /* log(2*sqrt(M_PIl)) */ #define M_PI_34l 2.356194490192344928846982537459627163L /* 3*pi/4 */ @@ -280,7 +288,6 @@ struct ulp_data #define M_PI2_LOG10El 0.682188176920920673742891812715677885L #define M_PI4_LOG10El 0.341094088460460336871445906357838943L #define M_PI_LOG10El 1.364376353841841347485783625431355770L -#define M_1_DIV_El 0.367879441171442321595523770161460867L /* 1 div e */ #define ulps_file_name "ULPs" /* Name of the ULPs file. */ static FILE *ulps_file; /* File to document difference. */ @@ -10658,19 +10665,13 @@ static const struct test_f_f_data log_test_data[] = TEST_f_f (log, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), TEST_f_f (log, minus_zero, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (log, 1, 0), - TEST_f_f (log, -1, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log, -max_value, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log, minus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log, plus_infty, plus_infty), TEST_f_f (log, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (log, M_El, 1), - TEST_f_f (log, M_1_DIV_El, -1), - TEST_f_f (log, 2, M_LN2l), - TEST_f_f (log, 10, M_LN10l), - TEST_f_f (log, 0.75L, -0.287682072451780927439219005993827432L), + AUTO_TESTS_f_f (log, tonearest), }; static void @@ -10687,8 +10688,6 @@ static const struct test_f_f_data log10_test_data[] = TEST_f_f (log10, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), TEST_f_f (log10, minus_zero, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (log10, 1, 0), - /* log10 (x) == qNaN plus invalid exception if x < 0. */ TEST_f_f (log10, -1, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log10, -max_value, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), @@ -10697,12 +10696,7 @@ static const struct test_f_f_data log10_test_data[] = TEST_f_f (log10, plus_infty, plus_infty), TEST_f_f (log10, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (log10, 0.1L, -1), - TEST_f_f (log10, 10.0, 1), - TEST_f_f (log10, 100.0, 2), - TEST_f_f (log10, 10000.0, 4), - TEST_f_f (log10, M_El, M_LOG10El), - TEST_f_f (log10, 0.75L, -0.124938736608299953132449886193870744L), + AUTO_TESTS_f_f (log10, tonearest), }; static void @@ -10716,9 +10710,6 @@ log10_test (void) static const struct test_f_f_data log1p_test_data[] = { - TEST_f_f (log1p, 0, 0), - TEST_f_f (log1p, minus_zero, minus_zero), - TEST_f_f (log1p, -1, minus_infty, DIVIDE_BY_ZERO_EXCEPTION), TEST_f_f (log1p, -2, qnan_value, INVALID_EXCEPTION), TEST_f_f (log1p, -max_value, qnan_value, INVALID_EXCEPTION), @@ -10727,10 +10718,7 @@ static const struct test_f_f_data log1p_test_data[] = TEST_f_f (log1p, plus_infty, plus_infty), TEST_f_f (log1p, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (log1p, M_El - 1.0, 1), - - TEST_f_f (log1p, -0.25L, -0.287682072451780927439219005993827432L), - TEST_f_f (log1p, -0.875, -2.07944154167983592825169636437452970L), + AUTO_TESTS_f_f (log1p, tonearest), }; static void @@ -10747,8 +10735,6 @@ static const struct test_f_f_data log2_test_data[] = TEST_f_f (log2, 0, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), TEST_f_f (log2, minus_zero, minus_infty, DIVIDE_BY_ZERO_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (log2, 1, 0), - TEST_f_f (log2, -1, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log2, -max_value, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (log2, minus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), @@ -10756,11 +10742,7 @@ static const struct test_f_f_data log2_test_data[] = TEST_f_f (log2, plus_infty, plus_infty), TEST_f_f (log2, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (log2, M_El, M_LOG2El), - TEST_f_f (log2, 2.0, 1), - TEST_f_f (log2, 16.0, 4), - TEST_f_f (log2, 256.0, 8), - TEST_f_f (log2, 0.75L, -.415037499278843818546261056052183492L), + AUTO_TESTS_f_f (log2, tonearest), }; static void @@ -13027,53 +13009,11 @@ signbit_test (void) static const struct test_f_f_data sin_test_data[] = { - TEST_f_f (sin, 0, 0), - TEST_f_f (sin, minus_zero, minus_zero), TEST_f_f (sin, plus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (sin, minus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (sin, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), - TEST_f_f (sin, M_PI_6l, 0.5), - TEST_f_f (sin, -M_PI_6l, -0.5), - TEST_f_f (sin, M_PI_2l, 1), - TEST_f_f (sin, -M_PI_2l, -1), - TEST_f_f (sin, 0.75L, 0.681638760023334166733241952779893935L), - - TEST_f_f (sin, 0x1p65, -0.047183876212354673805106149805700013943218L), - TEST_f_f (sin, -0x1p65, 0.047183876212354673805106149805700013943218L), - - TEST_f_f (sin, 0x1.7f4134p+103, -6.6703229329788657073304190650534846045235e-08L), - -#ifdef TEST_DOUBLE - TEST_f_f (sin, 0.80190127184058835, 0.71867942238767868), - TEST_f_f (sin, 2.522464e-1, 2.4957989804940911e-1), -#endif - -#ifndef TEST_FLOAT - TEST_f_f (sin, 1e22, -0.8522008497671888017727058937530293682618L), - TEST_f_f (sin, 0x1p1023, 0.5631277798508840134529434079444683477104L), -#endif - -#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 - TEST_f_f (sin, 0x1p16383L, 0.3893629985894208126948115852610595405563L), -#endif - - TEST_f_f (sin, 0x1p+120, 3.77820109360752022655548470056922991960587e-01L), - TEST_f_f (sin, 0x1p+127, 6.23385512955870240370428801097126489001833e-01L), - TEST_f_f (sin, 0x1.fffff8p+127, 4.85786063130487339701113680434728152037092e-02L), - TEST_f_f (sin, 0x1.fffffep+127, -5.21876523333658540551505357019806722935726e-01L), - TEST_f_f (sin, 0x1p+50, 4.96396515208940840876821859865411368093356e-01L), - TEST_f_f (sin, 0x1p+28, -9.86198211836975655703110310527108292055548e-01L), - -#ifdef TEST_DOUBLE - TEST_f_f (sin, 0.93340582292648832662962377071381, 0x1.9b78326675a75p-1); - TEST_f_f (sin, 2.3328432680770916363144351635128, 0x1.7264abddb4205p-1); - TEST_f_f (sin, 3.7439477503636453548097051680088, -0x1.2217622485d94p-1); - TEST_f_f (sin, 3.9225160069792437411706487182528, -0x1.686a3d55a1306p-1); - TEST_f_f (sin, 4.0711651639931289992091478779912, -0x1.9a4c6be7f5eadp-1); - TEST_f_f (sin, 4.7858438478542097982426639646292, -0x1.fe9e8d4105e51p-1); - TEST_f_f (sin, 5.9840767662578002727968851104379, -0x1.2dbd90aa4d692p-2); -#endif + AUTO_TESTS_f_f (sin, tonearest), }; static void @@ -13087,16 +13027,7 @@ sin_test (void) static const struct test_f_f_data sin_tonearest_test_data[] = { - TEST_f_f (sin, 1, 0.8414709848078965066525023216302989996226L), - TEST_f_f (sin, 2, 0.9092974268256816953960198659117448427023L), - TEST_f_f (sin, 3, 0.1411200080598672221007448028081102798469L), - TEST_f_f (sin, 4, -0.7568024953079282513726390945118290941359L), - TEST_f_f (sin, 5, -0.9589242746631384688931544061559939733525L), - TEST_f_f (sin, 6, -0.2794154981989258728115554466118947596280L), - TEST_f_f (sin, 7, 0.6569865987187890903969990915936351779369L), - TEST_f_f (sin, 8, 0.9893582466233817778081235982452886721164L), - TEST_f_f (sin, 9, 0.4121184852417565697562725663524351793439L), - TEST_f_f (sin, 10, -0.5440211108893698134047476618513772816836L), + AUTO_TESTS_f_f (sin, tonearest), }; static void @@ -13110,16 +13041,7 @@ sin_test_tonearest (void) static const struct test_f_f_data sin_towardzero_test_data[] = { - TEST_f_f (sin, 1, 0.8414709848078965066525023216302989996226L), - TEST_f_f (sin, 2, 0.9092974268256816953960198659117448427023L), - TEST_f_f (sin, 3, 0.1411200080598672221007448028081102798469L), - TEST_f_f (sin, 4, -0.7568024953079282513726390945118290941359L), - TEST_f_f (sin, 5, -0.9589242746631384688931544061559939733525L), - TEST_f_f (sin, 6, -0.2794154981989258728115554466118947596280L), - TEST_f_f (sin, 7, 0.6569865987187890903969990915936351779369L), - TEST_f_f (sin, 8, 0.9893582466233817778081235982452886721164L), - TEST_f_f (sin, 9, 0.4121184852417565697562725663524351793439L), - TEST_f_f (sin, 10, -0.5440211108893698134047476618513772816836L), + AUTO_TESTS_f_f (sin, towardzero), }; static void @@ -13133,16 +13055,7 @@ sin_test_towardzero (void) static const struct test_f_f_data sin_downward_test_data[] = { - TEST_f_f (sin, 1, 0.8414709848078965066525023216302989996226L), - TEST_f_f (sin, 2, 0.9092974268256816953960198659117448427023L), - TEST_f_f (sin, 3, 0.1411200080598672221007448028081102798469L), - TEST_f_f (sin, 4, -0.7568024953079282513726390945118290941359L), - TEST_f_f (sin, 5, -0.9589242746631384688931544061559939733525L), - TEST_f_f (sin, 6, -0.2794154981989258728115554466118947596280L), - TEST_f_f (sin, 7, 0.6569865987187890903969990915936351779369L), - TEST_f_f (sin, 8, 0.9893582466233817778081235982452886721164L), - TEST_f_f (sin, 9, 0.4121184852417565697562725663524351793439L), - TEST_f_f (sin, 10, -0.5440211108893698134047476618513772816836L), + AUTO_TESTS_f_f (sin, downward), }; static void @@ -13156,16 +13069,7 @@ sin_test_downward (void) static const struct test_f_f_data sin_upward_test_data[] = { - TEST_f_f (sin, 1, 0.8414709848078965066525023216302989996226L), - TEST_f_f (sin, 2, 0.9092974268256816953960198659117448427023L), - TEST_f_f (sin, 3, 0.1411200080598672221007448028081102798469L), - TEST_f_f (sin, 4, -0.7568024953079282513726390945118290941359L), - TEST_f_f (sin, 5, -0.9589242746631384688931544061559939733525L), - TEST_f_f (sin, 6, -0.2794154981989258728115554466118947596280L), - TEST_f_f (sin, 7, 0.6569865987187890903969990915936351779369L), - TEST_f_f (sin, 8, 0.9893582466233817778081235982452886721164L), - TEST_f_f (sin, 9, 0.4121184852417565697562725663524351793439L), - TEST_f_f (sin, 10, -0.5440211108893698134047476618513772816836L), + AUTO_TESTS_f_f (sin, upward), }; static void @@ -13251,15 +13155,11 @@ sincos_test (void) static const struct test_f_f_data sinh_test_data[] = { - TEST_f_f (sinh, 0, 0), - TEST_f_f (sinh, minus_zero, minus_zero), - TEST_f_f (sinh, plus_infty, plus_infty, NO_TEST_INLINE), TEST_f_f (sinh, minus_infty, minus_infty, NO_TEST_INLINE), TEST_f_f (sinh, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (sinh, 0.75L, 0.822316731935829980703661634446913849L), - TEST_f_f (sinh, 0x8p-32L, 1.86264514923095703232705808926175479e-9L), + AUTO_TESTS_f_f (sinh, tonearest), }; static void @@ -13273,9 +13173,7 @@ sinh_test (void) static const struct test_f_f_data sinh_tonearest_test_data[] = { - TEST_f_f (sinh, 22, 1792456423.065795780701106568345764104225L), - TEST_f_f (sinh, 23, 4872401723.124451299966006944252978187305L), - TEST_f_f (sinh, 24, 13244561064.92173614705070540368454568168L), + AUTO_TESTS_f_f (sinh, tonearest), }; static void @@ -13289,9 +13187,7 @@ sinh_test_tonearest (void) static const struct test_f_f_data sinh_towardzero_test_data[] = { - TEST_f_f (sinh, 22, 1792456423.065795780701106568345764104225L), - TEST_f_f (sinh, 23, 4872401723.124451299966006944252978187305L), - TEST_f_f (sinh, 24, 13244561064.92173614705070540368454568168L), + AUTO_TESTS_f_f (sinh, towardzero), }; static void @@ -13305,9 +13201,7 @@ sinh_test_towardzero (void) static const struct test_f_f_data sinh_downward_test_data[] = { - TEST_f_f (sinh, 22, 1792456423.065795780701106568345764104225L), - TEST_f_f (sinh, 23, 4872401723.124451299966006944252978187305L), - TEST_f_f (sinh, 24, 13244561064.92173614705070540368454568168L), + AUTO_TESTS_f_f (sinh, downward), }; static void @@ -13321,9 +13215,7 @@ sinh_test_downward (void) static const struct test_f_f_data sinh_upward_test_data[] = { - TEST_f_f (sinh, 22, 1792456423.065795780701106568345764104225L), - TEST_f_f (sinh, 23, 4872401723.124451299966006944252978187305L), - TEST_f_f (sinh, 24, 13244561064.92173614705070540368454568168L), + AUTO_TESTS_f_f (sinh, upward), }; static void @@ -13443,64 +13335,11 @@ sqrt_test_upward (void) static const struct test_f_f_data tan_test_data[] = { - TEST_f_f (tan, 0, 0), - TEST_f_f (tan, minus_zero, minus_zero), TEST_f_f (tan, plus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (tan, minus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (tan, qnan_value, qnan_value, NO_INEXACT_EXCEPTION|ERRNO_UNCHANGED), - TEST_f_f (tan, M_PI_4l, 1), - TEST_f_f (tan, 0.75L, 0.931596459944072461165202756573936428L), - - TEST_f_f (tan, 0x1p65, -0.0472364872359047946798414219288370688827L), - TEST_f_f (tan, -0x1p65, 0.0472364872359047946798414219288370688827L), - - TEST_f_f (tan, 0xc.9p-4, 0.9995162902115457818029468900654150261381L), - TEST_f_f (tan, 0xc.908p-4, 0.9997603425502441410973077452249560802034L), - TEST_f_f (tan, 0xc.90cp-4, 0.9998823910588060302788513970802357770031L), - TEST_f_f (tan, 0xc.90ep-4, 0.9999434208994808753305784795924711152508L), - TEST_f_f (tan, 0xc.90fp-4, 0.9999739372166156702433266059635165160515L), - TEST_f_f (tan, 0xc.90f8p-4, 0.9999891957244072765118898375645469865764L), - TEST_f_f (tan, 0xc.90fcp-4, 0.9999968250656122402859679132395522927393L), - TEST_f_f (tan, 0xc.90fdp-4, 0.9999987324100083358016192309006353329444L), - TEST_f_f (tan, 0xc.90fd8p-4, 0.9999996860835706212861509874451585282616L), - TEST_f_f (tan, 0xc.90fdap-4, 0.9999999245021033010474530133665235922808L), - TEST_f_f (tan, 0xc.ap-4, 1.0073556597407272165371804539701396631519L), - TEST_f_f (tan, 0xc.98p-4, 1.0034282930863044654045449407466962736255L), - TEST_f_f (tan, 0xc.94p-4, 1.0014703786820082237342656561856877993328L), - TEST_f_f (tan, 0xc.92p-4, 1.0004928571392300571266638743539017593717L), - TEST_f_f (tan, 0xc.91p-4, 1.0000044544650244953647966900221905361131L), - TEST_f_f (tan, 0xc.90fep-4, 1.0000006397580424009014454926842136804016L), - TEST_f_f (tan, 0xc.90fdcp-4, 1.0000001629206928242190327320047489394217L), - TEST_f_f (tan, 0xc.90fdbp-4, 1.0000000437113909572052640953950483705005L), - - TEST_f_f (tan, -0xc.9p-4, -0.9995162902115457818029468900654150261381L), - TEST_f_f (tan, -0xc.908p-4, -0.9997603425502441410973077452249560802034L), - TEST_f_f (tan, -0xc.90cp-4, -0.9998823910588060302788513970802357770031L), - TEST_f_f (tan, -0xc.90ep-4, -0.9999434208994808753305784795924711152508L), - TEST_f_f (tan, -0xc.90fp-4, -0.9999739372166156702433266059635165160515L), - TEST_f_f (tan, -0xc.90f8p-4, -0.9999891957244072765118898375645469865764L), - TEST_f_f (tan, -0xc.90fcp-4, -0.9999968250656122402859679132395522927393L), - TEST_f_f (tan, -0xc.90fdp-4, -0.9999987324100083358016192309006353329444L), - TEST_f_f (tan, -0xc.90fd8p-4, -0.9999996860835706212861509874451585282616L), - TEST_f_f (tan, -0xc.90fdap-4, -0.9999999245021033010474530133665235922808L), - TEST_f_f (tan, -0xc.ap-4, -1.0073556597407272165371804539701396631519L), - TEST_f_f (tan, -0xc.98p-4, -1.0034282930863044654045449407466962736255L), - TEST_f_f (tan, -0xc.94p-4, -1.0014703786820082237342656561856877993328L), - TEST_f_f (tan, -0xc.92p-4, -1.0004928571392300571266638743539017593717L), - TEST_f_f (tan, -0xc.91p-4, -1.0000044544650244953647966900221905361131L), - TEST_f_f (tan, -0xc.90fep-4, -1.0000006397580424009014454926842136804016L), - TEST_f_f (tan, -0xc.90fdcp-4, -1.0000001629206928242190327320047489394217L), - TEST_f_f (tan, -0xc.90fdbp-4, -1.0000000437113909572052640953950483705005L), - -#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 + AUTO_TESTS_f_f (tan, tonearest), }; static void @@ -13514,16 +13353,7 @@ tan_test (void) static const struct test_f_f_data tan_tonearest_test_data[] = { - TEST_f_f (tan, 1, 1.5574077246549022305069748074583601730873L), - TEST_f_f (tan, 2, -2.1850398632615189916433061023136825434320L), - TEST_f_f (tan, 3, -0.1425465430742778052956354105339134932261L), - TEST_f_f (tan, 4, 1.1578212823495775831373424182673239231198L), - TEST_f_f (tan, 5, -3.3805150062465856369827058794473439087096L), - TEST_f_f (tan, 6, -0.2910061913847491570536995888681755428312L), - TEST_f_f (tan, 7, 0.8714479827243187364564508896003135663222L), - TEST_f_f (tan, 8, -6.7997114552203786999252627596086333648814L), - TEST_f_f (tan, 9, -0.4523156594418098405903708757987855343087L), - TEST_f_f (tan, 10, 0.6483608274590866712591249330098086768169L), + AUTO_TESTS_f_f (tan, tonearest), }; static void @@ -13537,16 +13367,7 @@ tan_test_tonearest (void) static const struct test_f_f_data tan_towardzero_test_data[] = { - TEST_f_f (tan, 1, 1.5574077246549022305069748074583601730873L), - TEST_f_f (tan, 2, -2.1850398632615189916433061023136825434320L), - TEST_f_f (tan, 3, -0.1425465430742778052956354105339134932261L), - TEST_f_f (tan, 4, 1.1578212823495775831373424182673239231198L), - TEST_f_f (tan, 5, -3.3805150062465856369827058794473439087096L), - TEST_f_f (tan, 6, -0.2910061913847491570536995888681755428312L), - TEST_f_f (tan, 7, 0.8714479827243187364564508896003135663222L), - TEST_f_f (tan, 8, -6.7997114552203786999252627596086333648814L), - TEST_f_f (tan, 9, -0.4523156594418098405903708757987855343087L), - TEST_f_f (tan, 10, 0.6483608274590866712591249330098086768169L), + AUTO_TESTS_f_f (tan, towardzero), }; static void @@ -13560,16 +13381,7 @@ tan_test_towardzero (void) static const struct test_f_f_data tan_downward_test_data[] = { - TEST_f_f (tan, 1, 1.5574077246549022305069748074583601730873L), - TEST_f_f (tan, 2, -2.1850398632615189916433061023136825434320L), - TEST_f_f (tan, 3, -0.1425465430742778052956354105339134932261L), - TEST_f_f (tan, 4, 1.1578212823495775831373424182673239231198L), - TEST_f_f (tan, 5, -3.3805150062465856369827058794473439087096L), - TEST_f_f (tan, 6, -0.2910061913847491570536995888681755428312L), - TEST_f_f (tan, 7, 0.8714479827243187364564508896003135663222L), - TEST_f_f (tan, 8, -6.7997114552203786999252627596086333648814L), - TEST_f_f (tan, 9, -0.4523156594418098405903708757987855343087L), - TEST_f_f (tan, 10, 0.6483608274590866712591249330098086768169L), + AUTO_TESTS_f_f (tan, downward), }; static void @@ -13583,16 +13395,7 @@ tan_test_downward (void) static const struct test_f_f_data tan_upward_test_data[] = { - TEST_f_f (tan, 1, 1.5574077246549022305069748074583601730873L), - TEST_f_f (tan, 2, -2.1850398632615189916433061023136825434320L), - TEST_f_f (tan, 3, -0.1425465430742778052956354105339134932261L), - TEST_f_f (tan, 4, 1.1578212823495775831373424182673239231198L), - TEST_f_f (tan, 5, -3.3805150062465856369827058794473439087096L), - TEST_f_f (tan, 6, -0.2910061913847491570536995888681755428312L), - TEST_f_f (tan, 7, 0.8714479827243187364564508896003135663222L), - TEST_f_f (tan, 8, -6.7997114552203786999252627596086333648814L), - TEST_f_f (tan, 9, -0.4523156594418098405903708757987855343087L), - TEST_f_f (tan, 10, 0.6483608274590866712591249330098086768169L), + AUTO_TESTS_f_f (tan, upward), }; static void @@ -13606,21 +13409,11 @@ tan_test_upward (void) static const struct test_f_f_data tanh_test_data[] = { - TEST_f_f (tanh, 0, 0), - TEST_f_f (tanh, minus_zero, minus_zero), - TEST_f_f (tanh, plus_infty, 1, NO_TEST_INLINE), TEST_f_f (tanh, minus_infty, -1, NO_TEST_INLINE), TEST_f_f (tanh, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (tanh, 0.75L, 0.635148952387287319214434357312496495L), - TEST_f_f (tanh, -0.75L, -0.635148952387287319214434357312496495L), - - TEST_f_f (tanh, 1.0L, 0.7615941559557648881194582826047935904L), - TEST_f_f (tanh, -1.0L, -0.7615941559557648881194582826047935904L), - - /* 2^-57 */ - TEST_f_f (tanh, 0x1p-57L, 6.938893903907228377647697925567626953125e-18L), + AUTO_TESTS_f_f (tanh, tonearest), }; static void @@ -13643,514 +13436,7 @@ static const struct test_f_f_data tgamma_test_data[] = TEST_f_f (tgamma, minus_infty, qnan_value, INVALID_EXCEPTION|ERRNO_EDOM), TEST_f_f (tgamma, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (tgamma, 0.5, M_SQRT_PIl), - TEST_f_f (tgamma, -0.5, -M_2_SQRT_PIl), - - TEST_f_f (tgamma, 1, 1), - TEST_f_f (tgamma, 2, 1), - TEST_f_f (tgamma, 3, 2), - TEST_f_f (tgamma, 4, 6), - TEST_f_f (tgamma, 5, 24), - TEST_f_f (tgamma, 6, 120), - TEST_f_f (tgamma, 7, 720), - TEST_f_f (tgamma, 8, 5040), - TEST_f_f (tgamma, 9, 40320), - TEST_f_f (tgamma, 10, 362880), - - TEST_f_f (tgamma, 0.7L, 1.29805533264755778568117117915281162L), - TEST_f_f (tgamma, 1.2L, 0.918168742399760610640951655185830401L), - - TEST_f_f (tgamma, 1.5L, 8.8622692545275801364908374167057259139877e-01L), - TEST_f_f (tgamma, 2.5L, 1.3293403881791370204736256125058588870982e+00L), - TEST_f_f (tgamma, 3.5L, 3.3233509704478425511840640312646472177454e+00L), - TEST_f_f (tgamma, 4.5L, 1.1631728396567448929144224109426265262109e+01L), - TEST_f_f (tgamma, 5.5L, 5.2342777784553520181149008492418193679490e+01L), - TEST_f_f (tgamma, 6.5L, 2.8788527781504436099631954670830006523720e+02L), - TEST_f_f (tgamma, 7.5L, 1.8712543057977883464760770536039504240418e+03L), - TEST_f_f (tgamma, 8.5L, 1.4034407293483412598570577902029628180313e+04L), - TEST_f_f (tgamma, 9.5L, 1.1929246199460900708784991216725183953266e+05L), - TEST_f_f (tgamma, -1.5L, 2.3632718012073547030642233111215269103967e+00L), - TEST_f_f (tgamma, -2.5L, -9.4530872048294188122568932444861076415869e-01L), - TEST_f_f (tgamma, -3.5L, 2.7008820585226910892162552127103164690248e-01L), - TEST_f_f (tgamma, -4.5L, -6.0019601300504246427027893615784810422774e-02L), - TEST_f_f (tgamma, -5.5L, 1.0912654781909862986732344293779056440504e-02L), - TEST_f_f (tgamma, -6.5L, -1.6788699664476712287280529682737009908468e-03L), - TEST_f_f (tgamma, -7.5L, 2.2384932885968949716374039576982679877958e-04L), - TEST_f_f (tgamma, -8.5L, -2.6335215159963470254557693619979623385833e-05L), - TEST_f_f (tgamma, -9.5L, 2.7721279115751021320587045915768024616666e-06L), - TEST_f_f (tgamma, 0x1p-24L, 1.6777215422784394050795179874582764575261e+07L), - TEST_f_f (tgamma, -0x1p-24L, -1.6777216577215723853867349114260580375249e+07L), - TEST_f_f (tgamma, 0x1p-53L, 9.0071992547409914227843350984672492007618e+15L), - TEST_f_f (tgamma, -0x1p-53L, -9.0071992547409925772156649015329704137860e+15L), - TEST_f_f (tgamma, 0x1p-64L, 1.8446744073709551615422784335098467139447e+19L), - TEST_f_f (tgamma, -0x1p-64L, -1.8446744073709551616577215664901532860660e+19L), - TEST_f_f (tgamma, 0x1p-106L, 8.1129638414606681695789005144063422784335e+31L), - TEST_f_f (tgamma, -0x1p-106L, -8.1129638414606681695789005144064577215665e+31L), - TEST_f_f (tgamma, 0x1p-113L, 1.0384593717069655257060992658440191422784e+34L), - TEST_f_f (tgamma, -0x1p-113L, -1.0384593717069655257060992658440192577216e+34L), - TEST_f_f (tgamma, 0x1p-127L, 1.7014118346046923173168730371588410572742e+38L), - TEST_f_f (tgamma, -0x1p-127L, -1.7014118346046923173168730371588410572858e+38L), -#ifdef TEST_FLOAT - TEST_f_f (tgamma, 0x1p-128L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-128L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, 0x1p-149L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-149L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -#else - TEST_f_f (tgamma, 0x1p-128L, 3.4028236692093846346337460743176821145542e+38L), - TEST_f_f (tgamma, -0x1p-128L, -3.4028236692093846346337460743176821145658e+38L), - TEST_f_f (tgamma, 0x1p-149L, 7.1362384635297994052914298472474756819137e+44L), - TEST_f_f (tgamma, -0x1p-149L, -7.1362384635297994052914298472474756819137e+44L), -#endif -#ifndef TEST_FLOAT - TEST_f_f (tgamma, 0x1p-1023L, 8.9884656743115795386465259539451236680899e+307L), - TEST_f_f (tgamma, -0x1p-1023L, -8.9884656743115795386465259539451236680899e+307L), -# if !defined TEST_LDOUBLE || LDBL_MAX_EXP <= 1024 - TEST_f_f (tgamma, 0x1p-1024L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-1024L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, 0x1p-1074L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-1074L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# else - TEST_f_f (tgamma, 0x1p-1024L, 1.7976931348623159077293051907890247336180e+308L), - TEST_f_f (tgamma, -0x1p-1024L, -1.7976931348623159077293051907890247336180e+308L), - TEST_f_f (tgamma, 0x1p-1074L, 2.0240225330731061835249534671891730704956e+323L), - TEST_f_f (tgamma, -0x1p-1074L, -2.0240225330731061835249534671891730704956e+323L), -# endif -#endif -#if defined TEST_LDOUBLE && LDBL_MIN_EXP <= -16381 - TEST_f_f (tgamma, 0x1p-16383L, 5.9486574767861588254287966331400356538172e+4931L), - TEST_f_f (tgamma, -0x1p-16383L, -5.9486574767861588254287966331400356538172e+4931L), - TEST_f_f (tgamma, 0x1p-16384L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-16384L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, 0x1p-16445L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-16445L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# if LDBL_MANT_DIG >= 113 - TEST_f_f (tgamma, 0x1p-16494L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), - TEST_f_f (tgamma, -0x1p-16494L, minus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# endif -#endif - TEST_f_f (tgamma, 0x8.00001p0L, 5.0400096882277802019946778420223050233915e+03L), - TEST_f_f (tgamma, 0x7.fffff8p0L, 5.0399951558933225045148935487583089307135e+03L), - TEST_f_f (tgamma, 0x7.000008p0L, 7.2000064296977505705636258629805621178587e+02L), - TEST_f_f (tgamma, 0x6.fffff8p0L, 7.1999935703082425988147448928288557689866e+02L), - TEST_f_f (tgamma, 0x6.000008p0L, 1.2000009762487825358530770343720418162783e+02L), - TEST_f_f (tgamma, 0x5.fffff8p0L, 1.1999990237520611552119807476573441975106e+02L), - TEST_f_f (tgamma, 0x5.000008p0L, 2.4000017236155647574166073485628713443799e+01L), - TEST_f_f (tgamma, 0x4.fffff8p0L, 2.3999982763857938712639837029547357501709e+01L), - TEST_f_f (tgamma, 0x4.000008p0L, 6.0000035937827461765660468073471093546129e+00L), - TEST_f_f (tgamma, 0x3.fffffcp0L, 5.9999982031095793171233994481968816873643e+00L), - TEST_f_f (tgamma, 0x3.000004p0L, 2.0000004400179308360529417942462250547999e+00L), - TEST_f_f (tgamma, 0x2.fffffcp0L, 1.9999995599822108706107786027549565954046e+00L), - TEST_f_f (tgamma, 0x2.000004p0L, 1.0000001007996638509889062631687945799175e+00L), - TEST_f_f (tgamma, 0x1.fffffep0L, 9.9999994960018563231526611134590489120697e-01L), - TEST_f_f (tgamma, 0x1.000002p0L, 9.9999993119054472483596471908942669644327e-01L), - TEST_f_f (tgamma, 0x0.ffffffp0L, 1.0000000344047381790797322460568297132998e+00L), - TEST_f_f (tgamma, -0x0.ffffffp0L, -1.6777216422784419250710305882992376932423e+07L), - TEST_f_f (tgamma, -0x1.000002p0L, 8.3886075772158332060084424806449513922858e+06L), - TEST_f_f (tgamma, -0x1.fffffep0L, 4.1943044613922792026014320172298377770578e+06L), - TEST_f_f (tgamma, -0x2.000004p0L, -2.0971515386080557574407223895988378776747e+06L), - TEST_f_f (tgamma, -0x2.fffffcp0L, -6.9905087601970247876992248591045142913324e+05L), - TEST_f_f (tgamma, -0x3.000004p0L, 6.9905045731381300146131914617735687322025e+05L), - TEST_f_f (tgamma, -0x3.fffffcp0L, 1.7476272942159602684441970627092458855771e+05L), - TEST_f_f (tgamma, -0x4.000008p0L, -8.7381270578483499672965708923121931082305e+04L), - TEST_f_f (tgamma, -0x4.fffff8p0L, -1.7476280884325863043793087474680780379554e+04L), - TEST_f_f (tgamma, -0x5.000008p0L, 1.7476252449031389167286893378510439443844e+04L), - TEST_f_f (tgamma, -0x5.fffff8p0L, 2.9127137122026653716311560165769071985443e+03L), - TEST_f_f (tgamma, -0x6.000008p0L, -2.9127085100239567622341538102130981196910e+03L), - TEST_f_f (tgamma, -0x6.fffff8p0L, -4.1610198723079349791939054365613377035519e+02L), - TEST_f_f (tgamma, -0x7.000008p0L, 4.1610118737306415004517215226199741948733e+02L), - TEST_f_f (tgamma, -0x7.fffff8p0L, 5.2012751504050764429534086402871289946986e+01L), - TEST_f_f (tgamma, -0x8.00001p0L, -2.6006296115134418896533598545925084576702e+01L), - TEST_f_f (tgamma, -0x9.fffffp0L, 2.8896008370721717567612135720915723136310e-01L), - TEST_f_f (tgamma, -0xa.00001p0L, -2.8895878754728051776830454190076999107021e-01L), - TEST_f_f (tgamma, -0x13.ffffep0L, 2.1550026214525536756224040483579183652119e-13L), - TEST_f_f (tgamma, -0x14.00002p0L, -2.1549777908265594916405421768142757507179e-13L), - TEST_f_f (tgamma, -0x1d.ffffep0L, 1.9765721589464867957912772592816027583176e-27L), - TEST_f_f (tgamma, -0x1e.00002p0L, -1.9765463890341964384070157599286498212650e-27L), - TEST_f_f (tgamma, -0x27.ffffcp0L, 3.2129279441390812141195076945616975790225e-43L, UNDERFLOW_EXCEPTION_FLOAT), - TEST_f_f (tgamma, -0x28.00004p0L, -3.2128372159115252365699015758097981155793e-43L, UNDERFLOW_EXCEPTION_FLOAT), - TEST_f_f (tgamma, -0x28.ffffcp0L, -7.8364103489619817539676737414096652170685e-45L, UNDERFLOW_EXCEPTION_FLOAT), - TEST_f_f (tgamma, -0x29.00004p0L, 7.8361876024016854597745353972619195760515e-45L, UNDERFLOW_EXCEPTION_FLOAT), -#ifdef TEST_FLOAT - TEST_f_f (tgamma, -0x29.ffffcp0L, plus_zero, UNDERFLOW_EXCEPTION_FLOAT), - TEST_f_f (tgamma, -0x2a.00004p0L, minus_zero, UNDERFLOW_EXCEPTION_FLOAT), -#else - TEST_f_f (tgamma, -0x29.ffffcp0L, 1.8658121573125798145204120066590953505132e-46L), - TEST_f_f (tgamma, -0x2a.00004p0L, -1.8657587834931410688246126853566488626385e-46L), -#endif -#ifndef TEST_FLOAT - TEST_f_f (tgamma, 0x8.0000000000008p0L, 5.0400000000000180457125667322294144477136e+03L), - TEST_f_f (tgamma, 0x7.ffffffffffffcp0L, 5.0399999999999909771437166339103165198442e+03L), - TEST_f_f (tgamma, 0x7.0000000000004p0L, 7.2000000000000119762397445457359071259652e+02L), - TEST_f_f (tgamma, 0x6.ffffffffffffcp0L, 7.1999999999999880237602554542848858572672e+02L), - TEST_f_f (tgamma, 0x6.0000000000004p0L, 1.2000000000000018184042734842640022086408e+02L), - TEST_f_f (tgamma, 0x5.ffffffffffffcp0L, 1.1999999999999981815957265157389249327533e+02L), - TEST_f_f (tgamma, 0x5.0000000000004p0L, 2.4000000000000032104829055124673225982803e+01L), - TEST_f_f (tgamma, 0x4.ffffffffffffcp0L, 2.3999999999999967895170944875373910918544e+01L), - TEST_f_f (tgamma, 0x4.0000000000004p0L, 6.0000000000000066939396342309789716341613e+00L), - TEST_f_f (tgamma, 0x3.ffffffffffffep0L, 5.9999999999999966530301828845138185025345e+00L), - TEST_f_f (tgamma, 0x3.0000000000002p0L, 2.0000000000000008195971324717875960213536e+00L), - TEST_f_f (tgamma, 0x2.ffffffffffffep0L, 1.9999999999999991804028675282128956223990e+00L), - TEST_f_f (tgamma, 0x2.0000000000002p0L, 1.0000000000000001877539613108624482361963e+00L), - TEST_f_f (tgamma, 0x1.fffffffffffffp0L, 9.9999999999999990612301934456883679778984e-01L), - TEST_f_f (tgamma, 0x1.0000000000001p0L, 9.9999999999999987183237573039992418700531e-01L), - TEST_f_f (tgamma, 0x0.fffffffffffff8p0L, 1.0000000000000000640838121348000744796665e+00L), - TEST_f_f (tgamma, -0x0.fffffffffffff8p0L, -9.0071992547409924227843350984672961392521e+15L), - TEST_f_f (tgamma, -0x1.0000000000001p0L, 4.5035996273704955772156649015331740980405e+15L), - TEST_f_f (tgamma, -0x1.fffffffffffffp0L, 2.2517998136852484613921675492337776673289e+15L), - TEST_f_f (tgamma, -0x2.0000000000002p0L, -1.1258999068426235386078324507668462444260e+15L), - TEST_f_f (tgamma, -0x2.ffffffffffffep0L, -3.7529996894754154268627807196691509198813e+14L), - TEST_f_f (tgamma, -0x3.0000000000002p0L, 3.7529996894754112398038859470009084971438e+14L), - TEST_f_f (tgamma, -0x3.ffffffffffffep0L, 9.3824992236885396088236184658402406857503e+13L), - TEST_f_f (tgamma, -0x4.0000000000004p0L, -4.6912496118442603911763815341745722862351e+13L), - TEST_f_f (tgamma, -0x4.ffffffffffffcp0L, -9.3824992236885475509805702650262155809819e+12L), - TEST_f_f (tgamma, -0x5.0000000000004p0L, 9.3824992236885191156860964016850034672946e+12L), - TEST_f_f (tgamma, -0x5.ffffffffffffcp0L, 1.5637498706147581566449098589862357835505e+12L), - TEST_f_f (tgamma, -0x6.0000000000004p0L, -1.5637498706147529544662012521330708016396e+12L), - TEST_f_f (tgamma, -0x6.ffffffffffffcp0L, -2.2339283865925119357965832452642909859289e+11L), - TEST_f_f (tgamma, -0x7.0000000000004p0L, 2.2339283865925039372192897706214475877342e+11L), - TEST_f_f (tgamma, -0x7.ffffffffffffcp0L, 2.7924104832406402297655703264222230055898e+10L), - TEST_f_f (tgamma, -0x8.0000000000008p0L, -1.3962052416203121511868106259843527348026e+10L), - TEST_f_f (tgamma, -0x9.ffffffffffff8p0L, 1.5513391573559147700413058496716749249803e+08L), - TEST_f_f (tgamma, -0xa.0000000000008p0L, -1.5513391573559018084419393002828541166901e+08L), - TEST_f_f (tgamma, -0x13.ffffffffffffp0L, 1.1569515572952029402736625857313236848570e-04L), - TEST_f_f (tgamma, -0x14.000000000001p0L, -1.1569515572951781096476686854873801225397e-04L), - TEST_f_f (tgamma, -0x1d.ffffffffffffp0L, 1.0611571800204311628217068863959963842891e-18L), - TEST_f_f (tgamma, -0x1e.000000000001p0L, -1.0611571800204053929094168642022073530425e-18L), - TEST_f_f (tgamma, -0x27.fffffffffffep0L, 1.7249032006742266376460389310340465554361e-34L), - TEST_f_f (tgamma, -0x28.000000000002p0L, -1.7249032006741359094184881234822934593822e-34L), - TEST_f_f (tgamma, -0x28.fffffffffffep0L, -4.2070809772542120404320040128839297118648e-36L), - TEST_f_f (tgamma, -0x29.000000000002p0L, 4.2070809772539892938717205103652583609422e-36L), - TEST_f_f (tgamma, -0x29.fffffffffffep0L, 1.0016859469652887505173040814397197718981e-37L), - TEST_f_f (tgamma, -0x2a.000000000002p0L, -1.0016859469652353766978684241048308120274e-37L), - TEST_f_f (tgamma, -0x31.fffffffffffep0L, 4.6273774273632946947805289899230181990085e-51L), - TEST_f_f (tgamma, -0x32.000000000002p0L, -4.6273774273630367887073532197576655720178e-51L), - TEST_f_f (tgamma, -0x63.fffffffffffcp0L, 7.5400833348840965463348754984345825364294e-145L), - TEST_f_f (tgamma, -0x64.000000000004p0L, -7.5400833348831085791638490135462230991587e-145L), - TEST_f_f (tgamma, -0x95.fffffffffff8p0L, 6.1582369322723207086020016423767264008839e-250L), - TEST_f_f (tgamma, -0x96.000000000008p0L, -6.1582369322705655439003240743176243138734e-250L), - TEST_f_f (tgamma, -0xb4.fffffffffff8p0L, -9.6760879059917574597728750098636253931457e-319L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb5.000000000008p0L, 9.6760879059888966544677044221698800670218e-319L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb5.fffffffffff8p0L, 5.3165318164789884455066481673086605454904e-321L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb6.000000000008p0L, -5.3165318164774149139661976747137185876909e-321L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb6.fffffffffff8p0L, -2.9052086428846935908287469917922960610289e-323L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb7.000000000008p0L, 2.9052086428838328351126988236541632950925e-323L, UNDERFLOW_EXCEPTION_DOUBLE), -# if !defined TEST_LDOUBLE || LDBL_MAX_EXP <= 1024 - TEST_f_f (tgamma, -0xb7.fffffffffff8p0L, plus_zero, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb8.000000000008p0L, minus_zero, UNDERFLOW_EXCEPTION_DOUBLE), -# else - TEST_f_f (tgamma, -0xb7.fffffffffff8p0L, 1.5789177406982032823826953250736039527543e-325L), - TEST_f_f (tgamma, -0xb8.000000000008p0L, -1.5789177406977349925854817486109369828857e-325L), -# endif -#endif -#if defined TEST_LDOUBLE && LDBL_MANT_DIG >= 106 - TEST_f_f (tgamma, 0x8.00000000000000000000000004p0L, 5.0400000000000000000000000000020034765587e+03L), - TEST_f_f (tgamma, 0x7.fffffffffffffffffffffffffep0L, 5.0399999999999999999999999999989982617206e+03L), - TEST_f_f (tgamma, 0x7.00000000000000000000000002p0L, 7.2000000000000000000000000000013296297113e+02L), - TEST_f_f (tgamma, 0x6.fffffffffffffffffffffffffep0L, 7.1999999999999999999999999999986703702887e+02L), - TEST_f_f (tgamma, 0x6.00000000000000000000000002p0L, 1.2000000000000000000000000000002018834292e+02L), - TEST_f_f (tgamma, 0x5.fffffffffffffffffffffffffep0L, 1.1999999999999999999999999999997981165708e+02L), - TEST_f_f (tgamma, 0x5.00000000000000000000000002p0L, 2.4000000000000000000000000000003564352042e+01L), - TEST_f_f (tgamma, 0x4.fffffffffffffffffffffffffep0L, 2.3999999999999999999999999999996435647958e+01L), - TEST_f_f (tgamma, 0x4.00000000000000000000000002p0L, 6.0000000000000000000000000000007431765907e+00L), - TEST_f_f (tgamma, 0x3.ffffffffffffffffffffffffffp0L, 5.9999999999999999999999999999996284117046e+00L), - TEST_f_f (tgamma, 0x3.00000000000000000000000001p0L, 2.0000000000000000000000000000000909935607e+00L), - TEST_f_f (tgamma, 0x2.ffffffffffffffffffffffffffp0L, 1.9999999999999999999999999999999090064393e+00L), - TEST_f_f (tgamma, 0x2.00000000000000000000000001p0L, 1.0000000000000000000000000000000208448771e+00L), - TEST_f_f (tgamma, 0x1.ffffffffffffffffffffffffff8p0L, 9.9999999999999999999999999999998957756146e-01L), - TEST_f_f (tgamma, 0x1.000000000000000000000000008p0L, 9.9999999999999999999999999999998577053525e-01L), - TEST_f_f (tgamma, 0x0.ffffffffffffffffffffffffffcp0L, 1.0000000000000000000000000000000071147324e+00L), - TEST_f_f (tgamma, -0x0.ffffffffffffffffffffffffffcp0L, -8.1129638414606681695789005144064422784335e+31L), - TEST_f_f (tgamma, -0x1.000000000000000000000000008p0L, 4.0564819207303340847894502572031577215665e+31L), - TEST_f_f (tgamma, -0x1.ffffffffffffffffffffffffff8p0L, 2.0282409603651670423947251286016461392168e+31L), - TEST_f_f (tgamma, -0x2.00000000000000000000000001p0L, -1.0141204801825835211973625643007538607832e+31L), - TEST_f_f (tgamma, -0x2.ffffffffffffffffffffffffffp0L, -3.3804016006086117373245418810028760196114e+30L), - TEST_f_f (tgamma, -0x3.00000000000000000000000001p0L, 3.3804016006086117373245418810024573137219e+30L), - TEST_f_f (tgamma, -0x3.ffffffffffffffffffffffffffp0L, 8.4510040015215293433113547025072942156952e+29L), - TEST_f_f (tgamma, -0x4.00000000000000000000000002p0L, -4.2255020007607646716556773512527057843048e+29L), - TEST_f_f (tgamma, -0x4.fffffffffffffffffffffffffep0L, -8.4510040015215293433113547025080884313904e+28L), - TEST_f_f (tgamma, -0x5.00000000000000000000000002p0L, 8.4510040015215293433113547025052449019430e+28L), - TEST_f_f (tgamma, -0x5.fffffffffffffffffffffffffep0L, 1.4085006669202548905518924504180378867132e+28L), - TEST_f_f (tgamma, -0x6.00000000000000000000000002p0L, -1.4085006669202548905518924504175176688423e+28L), - TEST_f_f (tgamma, -0x6.fffffffffffffffffffffffffep0L, -2.0121438098860784150741320720257967542615e+27L), - TEST_f_f (tgamma, -0x7.00000000000000000000000002p0L, 2.0121438098860784150741320720249968965322e+27L), - TEST_f_f (tgamma, -0x7.fffffffffffffffffffffffffep0L, 2.5151797623575980188426650900322769448110e+26L), - TEST_f_f (tgamma, -0x8.00000000000000000000000004p0L, -1.2575898811787990094213325450153421028080e+26L), - TEST_f_f (tgamma, -0x9.fffffffffffffffffffffffffcp0L, 1.3973220901986655660237028277960625420495e+24L), - TEST_f_f (tgamma, -0xa.00000000000000000000000004p0L, -1.3973220901986655660237028277947663821128e+24L), - TEST_f_f (tgamma, -0x13.fffffffffffffffffffffffff8p0L, 1.0420893204640670202556853709074896123293e+12L), - TEST_f_f (tgamma, -0x14.00000000000000000000000008p0L, -1.0420893204640670202556853709050065497299e+12L), - TEST_f_f (tgamma, -0x1d.fffffffffffffffffffffffff8p0L, 9.5580541610429641982963434151488827190079e-03L), - TEST_f_f (tgamma, -0x1e.00000000000000000000000008p0L, -9.5580541610429641982963434151231128067179e-03L), - TEST_f_f (tgamma, -0x27.fffffffffffffffffffffffffp0L, 1.5536546823612837336494536911280147806523e-18L), - TEST_f_f (tgamma, -0x28.0000000000000000000000001p0L, -1.5536546823612837336494536911189419578973e-18L), - TEST_f_f (tgamma, -0x28.fffffffffffffffffffffffffp0L, -3.7894016642958139845108626612879138384405e-20L), - TEST_f_f (tgamma, -0x29.0000000000000000000000001p0L, 3.7894016642958139845108626612656391824122e-20L), - TEST_f_f (tgamma, -0x29.fffffffffffffffffffffffffp0L, 9.0223849149900332964544349078285357440663e-22L), - TEST_f_f (tgamma, -0x2a.0000000000000000000000001p0L, -9.0223849149900332964544349077751619246306e-22L), - TEST_f_f (tgamma, -0x31.fffffffffffffffffffffffffp0L, 4.1679710515150795310771069868348482819424e-35L), - TEST_f_f (tgamma, -0x32.0000000000000000000000001p0L, -4.1679710515150795310771069868090576746248e-35L), - TEST_f_f (tgamma, -0x63.ffffffffffffffffffffffffep0L, 6.7915032994648558610510614163560656864280e-129L), - TEST_f_f (tgamma, -0x64.0000000000000000000000002p0L, -6.7915032994648558610510614162572689693253e-129L), - TEST_f_f (tgamma, -0x95.ffffffffffffffffffffffffcp0L, 5.5468467106873795353190582463444660395353e-234L), - TEST_f_f (tgamma, -0x96.0000000000000000000000004p0L, -5.5468467106873795353190582461689495693675e-234L), - TEST_f_f (tgamma, -0xb4.ffffffffffffffffffffffffcp0L, -8.7154451775644399729745472278589884205029e-303L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb5.0000000000000000000000004p0L, 8.7154451775644399729745472275729078899858e-303L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb5.ffffffffffffffffffffffffcp0L, 4.7887061415189230620739270482742524864974e-305L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb6.0000000000000000000000004p0L, -4.7887061415189230620739270481168993324524e-305L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb6.ffffffffffffffffffffffffcp0L, -2.6167793123054224382917634143575601407067e-307L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb7.0000000000000000000000004p0L, 2.6167793123054224382917634142714845691019e-307L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), - TEST_f_f (tgamma, -0xb7.ffffffffffffffffffffffffcp0L, 1.4221626697312078468976975078030462044826e-309L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xb8.0000000000000000000000004p0L, -1.4221626697312078468976975077562172247612e-309L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbb.ffffffffffffffffffffffffcp0L, 1.1756150745511026776007338998283058108448e-318L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbc.0000000000000000000000004p0L, -1.1756150745511026776007338997894360215107e-318L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbc.ffffffffffffffffffffffffcp0L, -6.2201855796354639026493857133773832713743e-321L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbd.0000000000000000000000004p0L, 6.2201855796354639026493857131715153125175e-321L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbd.ffffffffffffffffffffffffcp0L, 3.2737818840186652119207293228302560914295e-323L, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbe.0000000000000000000000004p0L, -3.2737818840186652119207293227217957948294e-323L, UNDERFLOW_EXCEPTION_DOUBLE), -# if LDBL_MAX_EXP <= 1024 - TEST_f_f (tgamma, -0xbe.ffffffffffffffffffffffffcp0L, minus_zero, UNDERFLOW_EXCEPTION_DOUBLE), - TEST_f_f (tgamma, -0xbf.0000000000000000000000004p0L, plus_zero, UNDERFLOW_EXCEPTION_DOUBLE), -# else - TEST_f_f (tgamma, -0xbe.ffffffffffffffffffffffffcp0L, -1.7140219288055838805867692789687487834686e-325L), - TEST_f_f (tgamma, -0xbf.0000000000000000000000004p0L, 1.7140219288055838805867692789119066543632e-325L), -# endif -#endif -#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 - TEST_f_f (tgamma, 0x8.000000000000001p0L, 5.0400000000000000088113830892247051102283e+03L), - TEST_f_f (tgamma, 0x7.fffffffffffffff8p0L, 5.0399999999999999955943084553876474508520e+03L), - TEST_f_f (tgamma, 0x7.0000000000000008p0L, 7.2000000000000000058477733127664675369681e+02L), - TEST_f_f (tgamma, 0x6.fffffffffffffff8p0L, 7.1999999999999999941522266872335324679893e+02L), - TEST_f_f (tgamma, 0x6.0000000000000008p0L, 1.2000000000000000008878927116622375680433e+02L), - TEST_f_f (tgamma, 0x5.fffffffffffffff8p0L, 1.1999999999999999991121072883377624326546e+02L), - TEST_f_f (tgamma, 0x5.0000000000000008p0L, 2.4000000000000000015676186062072582846211e+01L), - TEST_f_f (tgamma, 0x4.fffffffffffffff8p0L, 2.3999999999999999984323813937927417165027e+01L), - TEST_f_f (tgamma, 0x4.0000000000000008p0L, 6.0000000000000000032685252120268430507939e+00L), - TEST_f_f (tgamma, 0x3.fffffffffffffffcp0L, 5.9999999999999999983657373939865784753909e+00L), - TEST_f_f (tgamma, 0x3.0000000000000004p0L, 2.0000000000000000004001939123397399171482e+00L), - TEST_f_f (tgamma, 0x2.fffffffffffffffcp0L, 1.9999999999999999995998060876602600829690e+00L), - TEST_f_f (tgamma, 0x2.0000000000000004p0L, 1.0000000000000000000916767389213195151634e+00L), - TEST_f_f (tgamma, 0x1.fffffffffffffffep0L, 9.9999999999999999995416163053934024243282e-01L), - TEST_f_f (tgamma, 0x1.0000000000000002p0L, 9.9999999999999999993741815221210931418291e-01L), - TEST_f_f (tgamma, 0x0.ffffffffffffffffp0L, 1.0000000000000000000312909238939453429173e+00L), - TEST_f_f (tgamma, -0x0.ffffffffffffffffp0L, -1.8446744073709551616422784335098467139470e+19L), - TEST_f_f (tgamma, -0x1.0000000000000002p0L, 9.2233720368547758075772156649015328607596e+18L), - TEST_f_f (tgamma, -0x1.fffffffffffffffep0L, 4.6116860184273879044613921675492335697983e+18L), - TEST_f_f (tgamma, -0x2.0000000000000004p0L, -2.3058430092136939515386078324507664305064e+18L), - TEST_f_f (tgamma, -0x2.fffffffffffffffcp0L, -7.6861433640456465087601961140530007887063e+17L), - TEST_f_f (tgamma, -0x3.0000000000000004p0L, 7.6861433640456465045731372192803325462836e+17L), - TEST_f_f (tgamma, -0x3.fffffffffffffffcp0L, 1.9215358410114116272942156951799168638773e+17L), - TEST_f_f (tgamma, -0x4.0000000000000008p0L, -9.6076792050570581270578430482008313684602e+16L), - TEST_f_f (tgamma, -0x4.fffffffffffffff8p0L, -1.9215358410114116280884313903598337283601e+16L), - TEST_f_f (tgamma, -0x5.0000000000000008p0L, 1.9215358410114116252449019429734996071487e+16L), - TEST_f_f (tgamma, -0x5.fffffffffffffff8p0L, 3.2025597350190193803788671320812043622696e+15L), - TEST_f_f (tgamma, -0x6.0000000000000008p0L, -3.2025597350190193751766884234743511972877e+15L), - TEST_f_f (tgamma, -0x6.fffffffffffffff8p0L, -4.5750853357414562579675426149912896787735e+14L), - TEST_f_f (tgamma, -0x7.0000000000000008p0L, 4.5750853357414562499689653215166468353753e+14L), - TEST_f_f (tgamma, -0x7.fffffffffffffff8p0L, 5.7188566696768203227694481100089533685959e+13L), - TEST_f_f (tgamma, -0x8.000000000000001p0L, -2.8594283348384101534210280804672371201060e+13L), - TEST_f_f (tgamma, -0x9.fffffffffffffffp0L, 3.1771425942649001828476427167843945971988e+11L), - TEST_f_f (tgamma, -0xa.000000000000001p0L, -3.1771425942649001698860433502350057763905e+11L), - TEST_f_f (tgamma, -0x13.ffffffffffffffep0L, 2.3694367893405502075347562184931828448654e-01L), - TEST_f_f (tgamma, -0x14.000000000000002p0L, -2.3694367893405501827041302245929389013031e-01L), - TEST_f_f (tgamma, -0x1d.ffffffffffffffep0L, 2.1732499046818166459536268654187775086902e-15L), - TEST_f_f (tgamma, -0x1e.000000000000002p0L, -2.1732499046818166201837145753965837196590e-15L), - TEST_f_f (tgamma, -0x27.ffffffffffffffcp0L, 3.5326017549807232935581894777156474496719e-31L), - TEST_f_f (tgamma, -0x28.000000000000004p0L, -3.5326017549807232028299619269080956965758e-31L), - TEST_f_f (tgamma, -0x28.ffffffffffffffcp0L, -8.6161018414163982777002940498289948893044e-33L), - TEST_f_f (tgamma, -0x29.000000000000004p0L, 8.6161018414163980549537337663264762179535e-33L), - TEST_f_f (tgamma, -0x29.ffffffffffffffcp0L, 2.0514528193848567329552463626090806737389e-34L), - TEST_f_f (tgamma, -0x2a.000000000000004p0L, -2.0514528193848566795814269269517457847791e-34L), - TEST_f_f (tgamma, -0x31.ffffffffffffffcp0L, 9.4768689712397635680446279661359728835046e-48L), - TEST_f_f (tgamma, -0x32.000000000000004p0L, -9.4768689712397633101385547903658075308777e-48L), - TEST_f_f (tgamma, -0x63.ffffffffffffff8p0L, 1.5442090669841618542494279375256856430049e-141L), - TEST_f_f (tgamma, -0x64.000000000000008p0L, -1.5442090669841617554527108348771968070612e-141L), - TEST_f_f (tgamma, -0x95.ffffffffffffffp0L, 1.2612069237291916400144732227892704713839e-246L), - TEST_f_f (tgamma, -0x96.00000000000001p0L, -1.2612069237291914644980030550324645611752e-246L), - TEST_f_f (tgamma, -0xb4.ffffffffffffffp0L, -1.9816628031468191243385005680879281767694e-315L), - TEST_f_f (tgamma, -0xb5.00000000000001p0L, 1.9816628031468188382579700510291588022368e-315L), - TEST_f_f (tgamma, -0xb5.ffffffffffffffp0L, 1.0888257160147357826865964233809723297472e-317L), - TEST_f_f (tgamma, -0xb6.00000000000001p0L, -1.0888257160147356253334423783317128355514e-317L), - TEST_f_f (tgamma, -0xb6.ffffffffffffffp0L, -5.9498673006269714905418984659220067091260e-320L), - TEST_f_f (tgamma, -0xb7.00000000000001p0L, 5.9498673006269706297861824177538685763601e-320L), - TEST_f_f (tgamma, -0xb7.ffffffffffffffp0L, 3.2336235329494410277123118903958061569834e-322L), - TEST_f_f (tgamma, -0xb8.00000000000001p0L, -3.2336235329494405594225146768193434900135e-322L), - TEST_f_f (tgamma, -0xbb.ffffffffffffffp0L, 2.6730392040715350119087465463119939092815e-331L), - TEST_f_f (tgamma, -0xbc.00000000000001p0L, -2.6730392040715346232108532050343031951651e-331L), - TEST_f_f (tgamma, -0xbc.ffffffffffffffp0L, -1.4143064571807063556111222197839950086445e-333L), - TEST_f_f (tgamma, -0xbd.00000000000001p0L, 1.4143064571807061497431633629389135273431e-333L), - TEST_f_f (tgamma, -0xbd.ffffffffffffffp0L, 7.4437181956879281879706555863416819210399e-336L), - TEST_f_f (tgamma, -0xbe.00000000000001p0L, -7.4437181956879271033676895858841525581153e-336L), - TEST_f_f (tgamma, -0xbe.ffffffffffffffp0L, -3.8972346574282346536709453101948570578636e-338L), - TEST_f_f (tgamma, -0xbf.00000000000001p0L, 3.8972346574282340852496542564155275274974e-338L), - TEST_f_f (tgamma, -0xf9.ffffffffffffffp0L, 2.2289142548411573883553287678043297937797e-476L), - TEST_f_f (tgamma, -0xfa.00000000000001p0L, -2.2289142548411570466476165308364665814265e-476L), - TEST_f_f (tgamma, -0x1f3.fffffffffffffep0L, 2.9528489142763141594943668922610562530068e-1118L), - TEST_f_f (tgamma, -0x1f4.00000000000002p0L, -2.9528489142763131406565394149878256133744e-1118L), - TEST_f_f (tgamma, -0x2ed.fffffffffffffcp0L, 6.9801511765871818502006905472380418430269e-1817L), - TEST_f_f (tgamma, -0x2ee.00000000000004p0L, -6.9801511765871767194421856376592926002995e-1817L), - TEST_f_f (tgamma, -0x3e7.fffffffffffffcp0L, 4.4768809295877296071892611539415773519036e-2552L), - TEST_f_f (tgamma, -0x3e8.00000000000004p0L, -4.4768809295877261735541135972060089530309e-2552L), - TEST_f_f (tgamma, -0x4e1.fffffffffffff8p0L, 5.4651488569236507565341414077911790252381e-3315L), - TEST_f_f (tgamma, -0x4e2.00000000000008p0L, -5.4651488569236421026544487194247355967789e-3315L), - TEST_f_f (tgamma, -0x5db.fffffffffffff8p0L, 1.8718211510339187689122114747834510481993e-4099L), - TEST_f_f (tgamma, -0x5dc.00000000000008p0L, -1.8718211510339157291960718369454861898499e-4099L), - TEST_f_f (tgamma, -0x6d5.fffffffffffff8p0L, 4.2925786447266492555651378780094011518063e-4902L), - TEST_f_f (tgamma, -0x6d6.00000000000008p0L, -4.2925786447266421378134368786479937285900e-4902L), - TEST_f_f (tgamma, -0x6e2.fffffffffffff8p0L, -2.8229173528168668283609231628661510187536e-4944L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e3.00000000000008p0L, 2.8229173528168621428945467532322397890424e-4944L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e3.fffffffffffff8p0L, 1.6002932839097884515524894602387278842659e-4947L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e4.00000000000008p0L, -1.6002932839097857951909742110188634438017e-4947L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e4.fffffffffffff8p0L, -9.0668174725767051085164382743343408095146e-4951L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e5.00000000000008p0L, 9.0668174725766900571689083050287838090189e-4951L, UNDERFLOW_EXCEPTION), -# if LDBL_MANT_DIG <= 64 - TEST_f_f (tgamma, -0x6e5.fffffffffffff8p0L, plus_zero, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e6.00000000000008p0L, minus_zero, UNDERFLOW_EXCEPTION), -# else - TEST_f_f (tgamma, -0x6e5.fffffffffffff8p0L, 5.1340982290921319983501912122292601780326e-4954L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e6.00000000000008p0L, -5.1340982290921234748578193083614111497314e-4954L, UNDERFLOW_EXCEPTION), -# endif -# if LDBL_MANT_DIG >= 113 - TEST_f_f (tgamma, 0x8.0000000000000000000000000008p0L, 5.0400000000000000000000000000000156521606e+03L), - TEST_f_f (tgamma, 0x7.fffffffffffffffffffffffffffcp0L, 5.0399999999999999999999999999999921739197e+03L), - TEST_f_f (tgamma, 0x7.0000000000000000000000000004p0L, 7.2000000000000000000000000000000103877321e+02L), - TEST_f_f (tgamma, 0x6.fffffffffffffffffffffffffffcp0L, 7.1999999999999999999999999999999896122679e+02L), - TEST_f_f (tgamma, 0x6.0000000000000000000000000004p0L, 1.2000000000000000000000000000000015772143e+02L), - TEST_f_f (tgamma, 0x5.fffffffffffffffffffffffffffcp0L, 1.1999999999999999999999999999999984227857e+02L), - TEST_f_f (tgamma, 0x5.0000000000000000000000000004p0L, 2.4000000000000000000000000000000027846500e+01L), - TEST_f_f (tgamma, 0x4.fffffffffffffffffffffffffffcp0L, 2.3999999999999999999999999999999972153500e+01L), - TEST_f_f (tgamma, 0x4.0000000000000000000000000004p0L, 6.0000000000000000000000000000000058060671e+00L), - TEST_f_f (tgamma, 0x3.fffffffffffffffffffffffffffep0L, 5.9999999999999999999999999999999970969664e+00L), - TEST_f_f (tgamma, 0x3.0000000000000000000000000002p0L, 2.0000000000000000000000000000000007108872e+00L), - TEST_f_f (tgamma, 0x2.fffffffffffffffffffffffffffep0L, 1.9999999999999999999999999999999992891128e+00L), - TEST_f_f (tgamma, 0x2.0000000000000000000000000002p0L, 1.0000000000000000000000000000000001628506e+00L), - TEST_f_f (tgamma, 0x1.ffffffffffffffffffffffffffffp0L, 9.9999999999999999999999999999999991857470e-01L), - TEST_f_f (tgamma, 0x1.0000000000000000000000000001p0L, 9.9999999999999999999999999999999988883231e-01L), - TEST_f_f (tgamma, 0x0.ffffffffffffffffffffffffffff8p0L, 1.0000000000000000000000000000000000555838e+00L), - TEST_f_f (tgamma, -0x0.ffffffffffffffffffffffffffff8p0L, -1.0384593717069655257060992658440192422784e+34L), - TEST_f_f (tgamma, -0x1.0000000000000000000000000001p0L, 5.1922968585348276285304963292200955772157e+33L), - TEST_f_f (tgamma, -0x1.ffffffffffffffffffffffffffffp0L, 2.5961484292674138142652481646100484613922e+33L), - TEST_f_f (tgamma, -0x2.0000000000000000000000000002p0L, -1.2980742146337069071326240823050235386078e+33L), - TEST_f_f (tgamma, -0x2.fffffffffffffffffffffffffffep0L, -4.3269140487790230237754136076834154268628e+32L), - TEST_f_f (tgamma, -0x3.0000000000000000000000000002p0L, 4.3269140487790230237754136076834112398039e+32L), - TEST_f_f (tgamma, -0x3.fffffffffffffffffffffffffffep0L, 1.0817285121947557559438534019208539608824e+32L), - TEST_f_f (tgamma, -0x4.0000000000000000000000000004p0L, -5.4086425609737787797192670096042603911764e+31L), - TEST_f_f (tgamma, -0x4.fffffffffffffffffffffffffffcp0L, -1.0817285121947557559438534019208547550981e+31L), - TEST_f_f (tgamma, -0x5.0000000000000000000000000004p0L, 1.0817285121947557559438534019208519115686e+31L), - TEST_f_f (tgamma, -0x5.fffffffffffffffffffffffffffcp0L, 1.8028808536579262599064223365347581566449e+30L), - TEST_f_f (tgamma, -0x6.0000000000000000000000000004p0L, -1.8028808536579262599064223365347529544662e+30L), - TEST_f_f (tgamma, -0x6.fffffffffffffffffffffffffffcp0L, -2.5755440766541803712948890521925119357966e+29L), - TEST_f_f (tgamma, -0x7.0000000000000000000000000004p0L, 2.5755440766541803712948890521925039372193e+29L), - TEST_f_f (tgamma, -0x7.fffffffffffffffffffffffffffcp0L, 3.2194300958177254641186113152406402297656e+28L), - TEST_f_f (tgamma, -0x8.0000000000000000000000000008p0L, -1.6097150479088627320593056576203121511868e+28L), - TEST_f_f (tgamma, -0x9.fffffffffffffffffffffffffff8p0L, 1.7885722754542919245103396195781369922635e+26L), - TEST_f_f (tgamma, -0xa.0000000000000000000000000008p0L, -1.7885722754542919245103396195781240306642e+26L), - TEST_f_f (tgamma, -0x13.fffffffffffffffffffffffffffp0L, 1.3338743301940057859272772747600099590309e+14L), - TEST_f_f (tgamma, -0x14.000000000000000000000000001p0L, -1.3338743301940057859272772747599851284049e+14L), - TEST_f_f (tgamma, -0x1d.fffffffffffffffffffffffffffp0L, 1.2234309326134994173819319571374205986026e+00L), - TEST_f_f (tgamma, -0x1e.000000000000000000000000001p0L, -1.2234309326134994173819319571373948286903e+00L), - TEST_f_f (tgamma, -0x27.ffffffffffffffffffffffffffep0L, 1.9886779934224431790713007246380976767855e-16L), - TEST_f_f (tgamma, -0x28.000000000000000000000000002p0L, -1.9886779934224431790713007246380069485580e-16L), - TEST_f_f (tgamma, -0x28.ffffffffffffffffffffffffffep0L, -4.8504341302986419001739042064343853066259e-18L), - TEST_f_f (tgamma, -0x29.000000000000000000000000002p0L, 4.8504341302986419001739042064341625600656e-18L), - TEST_f_f (tgamma, -0x29.ffffffffffffffffffffffffffep0L, 1.1548652691187242619461676681986633377063e-19L), - TEST_f_f (tgamma, -0x2a.000000000000000000000000002p0L, -1.1548652691187242619461676681986099638869e-19L), - TEST_f_f (tgamma, -0x31.ffffffffffffffffffffffffffep0L, 5.3350029459393017997786969431322287652396e-33L), - TEST_f_f (tgamma, -0x32.000000000000000000000000002p0L, -5.3350029459393017997786969431319708591664e-33L), - TEST_f_f (tgamma, -0x63.ffffffffffffffffffffffffffcp0L, 8.6931242233150155021453586128730281632676e-127L), - TEST_f_f (tgamma, -0x64.000000000000000000000000004p0L, -8.6931242233150155021453586128720401960966e-127L), - TEST_f_f (tgamma, -0x95.ffffffffffffffffffffffffff8p0L, 7.0999637896798458052083945552094635720486e-232L), - TEST_f_f (tgamma, -0x96.000000000000000000000000008p0L, -7.0999637896798458052083945552077084073470e-232L), - TEST_f_f (tgamma, -0xb4.ffffffffffffffffffffffffff8p0L, -1.1155769827282483165407420451477844041365e-300L), - TEST_f_f (tgamma, -0xb5.000000000000000000000000008p0L, 1.1155769827282483165407420451474983236060e-300L), - TEST_f_f (tgamma, -0xb5.ffffffffffffffffffffffffff8p0L, 6.1295438611442215194546266216911239298981e-303L), - TEST_f_f (tgamma, -0xb6.000000000000000000000000008p0L, -6.1295438611442215194546266216895503983577e-303L), - TEST_f_f (tgamma, -0xb6.ffffffffffffffffffffffffff8p0L, -3.3494775197509407210134571703230189921356e-305L), - TEST_f_f (tgamma, -0xb7.000000000000000000000000008p0L, 3.3494775197509407210134571703221582364195e-305L), - TEST_f_f (tgamma, -0xb7.ffffffffffffffffffffffffff8p0L, 1.8203682172559460440290528099581627396147e-307L), - TEST_f_f (tgamma, -0xb8.000000000000000000000000008p0L, -1.8203682172559460440290528099576944498174e-307L), - TEST_f_f (tgamma, -0xbb.ffffffffffffffffffffffffff8p0L, 1.5047872954254114273289393917555491216542e-316L), - TEST_f_f (tgamma, -0xbc.000000000000000000000000008p0L, -1.5047872954254114273289393917551604237609e-316L), - TEST_f_f (tgamma, -0xbc.ffffffffffffffffffffffffff8p0L, -7.9618375419333937953912137129923244334851e-319L), - TEST_f_f (tgamma, -0xbd.000000000000000000000000008p0L, 7.9618375419333937953912137129902657538965e-319L), - TEST_f_f (tgamma, -0xbd.ffffffffffffffffffffffffff8p0L, 4.1904408115438914712585335331538555086887e-321L), - TEST_f_f (tgamma, -0xbe.000000000000000000000000008p0L, -4.1904408115438914712585335331527709057227e-321L), - TEST_f_f (tgamma, -0xbe.ffffffffffffffffffffffffff8p0L, -2.1939480688711473671510646770439036908579e-323L), - TEST_f_f (tgamma, -0xbf.000000000000000000000000008p0L, 2.1939480688711473671510646770433352695669e-323L), - TEST_f_f (tgamma, -0xf9.ffffffffffffffffffffffffff8p0L, 1.2547671759429278005937024349858508569625e-461L), - TEST_f_f (tgamma, -0xfa.000000000000000000000000008p0L, -1.2547671759429278005937024349855091492502e-461L), - TEST_f_f (tgamma, -0x1f3.ffffffffffffffffffffffffffp0L, 1.6623061587520224800948170558276526986560e-1103L), - TEST_f_f (tgamma, -0x1f4.00000000000000000000000001p0L, -1.6623061587520224800948170558266338608285e-1103L), - TEST_f_f (tgamma, -0x2ed.fffffffffffffffffffffffffep0L, 3.9294757797334687313030998663853566763041e-1802L), - TEST_f_f (tgamma, -0x2ee.00000000000000000000000002p0L, -3.9294757797334687313030998663802259177992e-1802L), - TEST_f_f (tgamma, -0x3e7.fffffffffffffffffffffffffep0L, 2.5202599107841713834679953735597552855978e-2537L), - TEST_f_f (tgamma, -0x3e8.00000000000000000000000002p0L, -2.5202599107841713834679953735563216504503e-2537L), - TEST_f_f (tgamma, -0x4e1.fffffffffffffffffffffffffcp0L, 3.0766052944457032773369415396747635242705e-3300L), - TEST_f_f (tgamma, -0x4e2.00000000000000000000000004p0L, -3.0766052944457032773369415396661096445778e-3300L), - TEST_f_f (tgamma, -0x5db.fffffffffffffffffffffffffcp0L, 1.0537416297875703295453200836588944487917e-4084L), - TEST_f_f (tgamma, -0x5dc.00000000000000000000000004p0L, -1.0537416297875703295453200836558547326520e-4084L), - TEST_f_f (tgamma, -0x6d5.fffffffffffffffffffffffffcp0L, 2.4165069481061837867659591369998698607387e-4887L), - TEST_f_f (tgamma, -0x6d6.00000000000000000000000004p0L, -2.4165069481061837867659591369927521090377e-4887L), - TEST_f_f (tgamma, -0x6e2.fffffffffffffffffffffffffcp0L, -1.5891611922804672355414813803008070609431e-4929L), - TEST_f_f (tgamma, -0x6e3.00000000000000000000000004p0L, 1.5891611922804672355414813802961215945667e-4929L), - TEST_f_f (tgamma, -0x6e3.fffffffffffffffffffffffffcp0L, 9.0088502963745308137272187091882496519917e-4933L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e4.00000000000000000000000004p0L, -9.0088502963745308137272187091616860368392e-4933L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e4.fffffffffffffffffffffffffcp0L, -5.1041644738665896961627301468488672286746e-4936L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e5.00000000000000000000000004p0L, 5.1041644738665896961627301468338158811446e-4936L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e5.fffffffffffffffffffffffffcp0L, 2.8902403589278537350864836618623260468143e-4939L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6e6.00000000000000000000000004p0L, -2.8902403589278537350864836618538025544424e-4939L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6eb.fffffffffffffffffffffffffcp0L, 9.4152481960798287090819640211017219042636e-4959L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ec.00000000000000000000000004p0L, -9.4152481960798287090819640210739431797168e-4959L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ec.fffffffffffffffffffffffffcp0L, -5.3103486723518492437010513373388172315540e-4962L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ed.00000000000000000000000004p0L, 5.3103486723518492437010513373231484108489e-4962L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ed.fffffffffffffffffffffffffcp0L, 2.9934321715624854812294539669328172615019e-4965L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ee.00000000000000000000000004p0L, -2.9934321715624854812294539669239841152754e-4965L, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ee.fffffffffffffffffffffffffcp0L, minus_zero, UNDERFLOW_EXCEPTION), - TEST_f_f (tgamma, -0x6ef.00000000000000000000000004p0L, plus_zero, UNDERFLOW_EXCEPTION), -# endif -#endif - TEST_f_f (tgamma, -0x1.0a32a2p+5L, 1.8125267978155035272941154746083439329912e-37L), -#ifndef TEST_FLOAT - TEST_f_f (tgamma, -0x1.5800000080001p+7L, -3.1439271448823567326093363350637118195240e-304L, UNDERFLOW_EXCEPTION_LDOUBLE_IBM), -#endif - TEST_f_f (tgamma, 18.5L, 1.4986120533153361177371791123515513270334e+15L), - TEST_f_f (tgamma, 19.5L, 2.7724322986333718178137813578503699550119e+16L), - TEST_f_f (tgamma, 23.5L, 5.3613035875444147334274983856108155717836e+21L), - TEST_f_f (tgamma, 29.5L, 1.6348125198274266444378807806868221866931e+30L), - TEST_f_f (tgamma, 30.5L, 4.8226969334909086010917483030261254507447e+31L), - TEST_f_f (tgamma, 31.5L, 1.4709225647147271233329832324229682624771e+33L), - TEST_f_f (tgamma, 32.5L, 4.6334060788513904384988971821323500268029e+34L), - TEST_f_f (tgamma, 33.5L, 1.5058569756267018925121415841930137587110e+36L), - TEST_f_f (tgamma, 34.5L, 5.0446208683494513399156743070465960916817e+37L), - TEST_f_f (tgamma, 0x2.30a43cp+4L, 3.4027979115654976101247558405326779640190e+38L), -#ifdef TEST_FLOAT - TEST_f_f (tgamma, 0x2.30a44p+4L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -#else - TEST_f_f (tgamma, 0x2.30a44p+4L, 3.4028438913396451054667218138127983367181e+38L), -#endif -#ifndef TEST_FLOAT - TEST_f_f (tgamma, 0xa.b9fd72b0fb238p+4L, 1.7976931348622298700886249281842651388250e+308L), -# if !defined TEST_LDOUBLE || LDBL_MAX_EXP <= 1024 - TEST_f_f (tgamma, 0xa.b9fd72b0fb24p+4L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# else - TEST_f_f (tgamma, 0xa.b9fd72b0fb24p+4L, 1.7976931348624926129589466917917870782484e+308L), -# endif -#endif -#if defined TEST_LDOUBLE && LDBL_MANT_DIG >= 106 - TEST_f_f (tgamma, 0xa.b9fd72b0fb23a9ddbf0d3804f4p+4L, 1.7976931348623158079372897140307719334857e+308L), -# if LDBL_MAX_EXP <= 1024 - TEST_f_f (tgamma, 0xa.b9fd72b0fb23a9ddbf0d3804f8p+4L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# else - TEST_f_f (tgamma, 0xa.b9fd72b0fb23a9ddbf0d3804f8p+4L, 1.7976931348623158079372897140599422519044e+308L), -# endif -#endif -#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 - TEST_f_f (tgamma, 0x6.db8c603359a97108p+8L, 1.1897314953572317517071551278058233700012e+4932L), - TEST_f_f (tgamma, 0x6.db8c603359a9711p+8L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# if LDBL_MANT_DIG >= 113 - TEST_f_f (tgamma, 0x6.db8c603359a971081bc4a2e9dfdp+8L, 1.1897314953572317650857593266265995494998e+4932L), - TEST_f_f (tgamma, 0x6.db8c603359a971081bc4a2e9dfd4p+8L, plus_infty, OVERFLOW_EXCEPTION|ERRNO_ERANGE), -# endif -#endif + AUTO_TESTS_f_f (tgamma, tonearest), }; static void @@ -14286,37 +13572,7 @@ static const struct test_f_f_data y0_test_data[] = TEST_f_f (y0, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), TEST_f_f (y0, plus_infty, 0), - TEST_f_f (y0, 0.125L, -1.38968062514384052915582277745018693L), - TEST_f_f (y0, 0.75L, -0.137172769385772397522814379396581855L), - TEST_f_f (y0, 1.0, 0.0882569642156769579829267660235151628L), - TEST_f_f (y0, 1.5, 0.382448923797758843955068554978089862L), - TEST_f_f (y0, 2.0, 0.510375672649745119596606592727157873L), - TEST_f_f (y0, 8.0, 0.223521489387566220527323400498620359L), - TEST_f_f (y0, 10.0, 0.0556711672835993914244598774101900481L), - - TEST_f_f (y0, 0x1.3ffp+74L, 1.818984347516051243459467456433028748678e-12L), - -#ifndef TEST_FLOAT - TEST_f_f (y0, 0x1.ff00000000002p+840L, 1.846591691699331493194965158699937660696e-127L), - TEST_f_f (y0, 0x1p1023L, 8.2687542933709649327986678723012001545638e-155L), -#endif - -#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 - TEST_f_f (y0, 0x1p16382L, 8.0839224448726336195866026476176740513439e-2467L), - TEST_f_f (y0, 0x1p16383L, -3.8895531955766020648617743624167352352217e-2467L), -#endif - - TEST_f_f (y0, 0x1p-10L, -4.4865150767109739412411806297168793661098L), - TEST_f_f (y0, 0x1p-20L, -8.8992283012125827603076426611387876938160L), - TEST_f_f (y0, 0x1p-30L, -1.3311940304267782826037118027401817264906e+1L), - TEST_f_f (y0, 0x1p-40L, -1.7724652307320814696990854700366226762563e+1L), - TEST_f_f (y0, 0x1p-50L, -2.2137364310373846564919987139743760738155e+1L), - TEST_f_f (y0, 0x1p-60L, -2.6550076313426878432849115782108205929120e+1L), - TEST_f_f (y0, 0x1p-70L, -3.0962788316479910300778244424468159753887e+1L), - TEST_f_f (y0, 0x1p-80L, -3.5375500319532942168707373066828113573541e+1L), - TEST_f_f (y0, 0x1p-90L, -3.9788212322585974036636501709188067393195e+1L), - TEST_f_f (y0, 0x1p-100L, -4.420092432563900590456563035154802121284e+1L), - TEST_f_f (y0, 0x1p-110L, -4.861363632869203777249475899390797503250e+1L), + AUTO_TESTS_f_f (y0, tonearest), }; static void @@ -14339,37 +13595,7 @@ static const struct test_f_f_data y1_test_data[] = TEST_f_f (y1, plus_infty, 0), TEST_f_f (y1, qnan_value, qnan_value, NO_INEXACT_EXCEPTION), - TEST_f_f (y1, 0.125L, -5.19993611253477499595928744876579921L), - TEST_f_f (y1, 0.75L, -1.03759455076928541973767132140642198L), - TEST_f_f (y1, 1.0, -0.781212821300288716547150000047964821L), - TEST_f_f (y1, 1.5, -0.412308626973911295952829820633445323L), - TEST_f_f (y1, 2.0, -0.107032431540937546888370772277476637L), - TEST_f_f (y1, 8.0, -0.158060461731247494255555266187483550L), - TEST_f_f (y1, 10.0, 0.249015424206953883923283474663222803L), - - TEST_f_f (y1, 0x1.27e204p+99L, -8.881610148467797208469612080785210013461e-16L), - -#ifndef TEST_FLOAT - TEST_f_f (y1, 0x1.001000001p+593L, 3.927269966354206207832593635798954916263e-90L), - TEST_f_f (y1, 0x1p1023L, 1.5665258060609012834424478437196679802783e-155L), -#endif - -#if defined TEST_LDOUBLE && LDBL_MAX_EXP >= 16384 - TEST_f_f (y1, 0x1p16382L, 1.2193782500509000574176799046642541129387e-2466L), - TEST_f_f (y1, 0x1p16383L, -9.5859502826270374691362975419147645151233e-2467L), -#endif - - TEST_f_f (y1, 0x1p-10L, -6.5190099301063115047395187618929589514382e+02L), - TEST_f_f (y1, 0x1p-20L, -6.6754421443450423911167962313100637952285e+05L), - TEST_f_f (y1, 0x1p-30L, -6.8356527557643159612937462812258975438856e+08L), - TEST_f_f (y1, 0x1p-40L, -6.9997084219026594793707805777425993547887e+11L), - TEST_f_f (y1, 0x1p-50L, -7.1677014240283233068755952926181262431559e+14L), - TEST_f_f (y1, 0x1p-60L, -7.3397262582050030662406095795388448059822e+17L), - TEST_f_f (y1, 0x1p-70L, -7.5158796884019231398303842094477769620063e+20L), - TEST_f_f (y1, 0x1p-80L, -7.6962608009235692951863134304745236090943e+23L), - TEST_f_f (y1, 0x1p-90L, -7.8809710601457349582707849528059121757126e+26L), - TEST_f_f (y1, 0x1p-100L, -8.0701143655892325972692837916732540679297e+29L), - TEST_f_f (y1, 0x1p-110L, -8.2637971103633741796037466026734121655600e+32L), + AUTO_TESTS_f_f (y1, tonearest), }; static void |