diff options
author | Joseph Myers <joseph@codesourcery.com> | 2015-10-23 22:46:05 +0000 |
---|---|---|
committer | Joseph Myers <joseph@codesourcery.com> | 2015-10-23 22:46:05 +0000 |
commit | 9d1687b2dfc2da2d837168c7857c1271ed3d3d6e (patch) | |
tree | 67454225bf54859404eee9449202470271789488 /math/auto-libm-test-in | |
parent | c643db8792102d1a2efad109f58139977d8608d6 (diff) | |
download | glibc-9d1687b2dfc2da2d837168c7857c1271ed3d3d6e.zip glibc-9d1687b2dfc2da2d837168c7857c1271ed3d3d6e.tar.gz glibc-9d1687b2dfc2da2d837168c7857c1271ed3d3d6e.tar.bz2 |
Add more libm tests (ilogb, is*, j0, j1, jn, lgamma, log*).
This patch improves the libm test coverage for a few more functions.
Tested for x86_64 and x86.
* math/auto-libm-test-in: Add more tests of log, log10, log1p and
log2.
* math/auto-libm-test-out: Regenerated.
* math/libm-test.inc (MAX_EXP): New macro.
(ilogb_test_data): Add more tests.
(isfinite_test_data): Likewise.
(isgreater_test_data): Likewise.
(isgreaterequal_test_data): Likewise.
(isinf_test_data): Likewise.
(isless_test_data): Likewise.
(islessequal_test_data): Likewise.
(islessgreater_test_data): Likewise.
(isnan_test_data): Likewise.
(isnormal_test_data): Likewise.
(issignaling_test_data): Likewise.
(isunordered_test_data): Likewise.
(j0_test_data): Likewise.
(j1_test_data): Likewise.
(jn_test_data): Likewise.
(lgamma_test_data): Likewise.
(log_test_data): Likewise.
(log10_test_data): Likewise.
(log1p_test_data): Likewise.
(log2_test_data): Likewise.
(logb_test_data): Likewise.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
Diffstat (limited to 'math/auto-libm-test-in')
-rw-r--r-- | math/auto-libm-test-in | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/math/auto-libm-test-in b/math/auto-libm-test-in index b5308e3..ad50930 100644 --- a/math/auto-libm-test-in +++ b/math/auto-libm-test-in @@ -3040,6 +3040,16 @@ log 1/e log 2 log 10 log 0.75 +log 0x1.000002p0 +log 0x1.0000000000001p0 +log 0x1.0000000000000002p0 +log 0x1.000000000000000000000000008p0 +log 0x1.0000000000000000000000000001p0 +log 0x0.ffffffp0 +log 0x0.fffffffffffff8p0 +log 0x0.ffffffffffffffffp0 +log 0x0.ffffffffffffffffffffffffffcp0 +log 0x0.ffffffffffffffffffffffffffff8p0 log min log min_subnorm log max @@ -3060,6 +3070,16 @@ log10 100.0 log10 10000.0 log10 e log10 0.75 +log10 0x1.000002p0 +log10 0x1.0000000000001p0 +log10 0x1.0000000000000002p0 +log10 0x1.000000000000000000000000008p0 +log10 0x1.0000000000000000000000000001p0 +log10 0x0.ffffffp0 +log10 0x0.fffffffffffff8p0 +log10 0x0.ffffffffffffffffp0 +log10 0x0.ffffffffffffffffffffffffffcp0 +log10 0x0.ffffffffffffffffffffffffffff8p0 log10 min log10 min_subnorm log10 max @@ -3078,6 +3098,21 @@ log1p -0 log1p e-1 log1p -0.25 log1p -0.875 +log1p 0x1p-5 +log1p 0x1p-10 +log1p 0x1p-15 +log1p 0x1p-20 +log1p 0x1p-25 +log1p 0x1p-30 +log1p 0x1p-35 +log1p 0x1p-40 +log1p 0x1p-45 +log1p 0x1p-50 +log1p 0x1p-55 +log1p 0x1p-60 +log1p 0x1p-100 +log1p 0x1p-600 +log1p 0x1p-10000 log1p min log1p min_subnorm log1p -min @@ -3114,6 +3149,16 @@ log2 2.0 log2 16.0 log2 256.0 log2 0.75 +log2 0x1.000002p0 +log2 0x1.0000000000001p0 +log2 0x1.0000000000000002p0 +log2 0x1.000000000000000000000000008p0 +log2 0x1.0000000000000000000000000001p0 +log2 0x0.ffffffp0 +log2 0x0.fffffffffffff8p0 +log2 0x0.ffffffffffffffffp0 +log2 0x0.ffffffffffffffffffffffffffcp0 +log2 0x0.ffffffffffffffffffffffffffff8p0 log2 0x1.28d3b4p+0 log2 0xe.d99dap-4 log2 0x1.63d202d04392cp+0 |