aboutsummaryrefslogtreecommitdiff
path: root/math
AgeCommit message (Collapse)AuthorFilesLines
2013-08-29math: Additional type conversion testsThomas Schwinge1-7/+13
These have helped me find and fix type conversion issues in QEMU's MIPS hardware emulation. While certainly glibc is not the best place for such tests, they're just an enhancement of tests already present.
2013-08-23Fix cexp (NaN + i0) (bug 15532).Joseph Myers4-13/+32
2013-08-21Fix fdim handling of infinities (bug 15797).Joseph Myers4-39/+43
2013-08-20Fix cproj handling of (finite, NaN) arguments (bug 15531).Joseph Myers4-9/+43
2013-08-13Fix cbrtl for ldbl-96Andreas Schwab1-0/+5
2013-07-13Annotate more cases of math bug 15319.David S. Miller1-16/+20
* math/libm-test.inc (casin_test_data): Annotate more cases of missing underflows from atanl/atan2l due to bug 15319. (casinh_test_data): Likewise.
2013-06-20Allow fesetround failures in math/test-misc.c if ROUNDING_TESTS fails.Joseph Myers1-1/+5
2013-06-20Avoid spurious failures from <fenv.h> fallback functions (bug 15654).Joseph Myers10-15/+27
2013-06-17Use math-tests.h more in math/test-misc.Joseph Myers1-2/+10
2013-06-15Add another fma test.Joseph Myers1-0/+1
2013-06-12Make more libm tests condition exceptions tests with math-tests.h.Joseph Myers3-51/+54
2013-06-11Add exception information to math-tests.h and use it in libm-test.inc.Joseph Myers1-17/+21
2013-06-10Add rounding mode information to math-tests.h and use it in libm-test.inc.Joseph Myers1-4/+9
2013-06-05Remove trailing whitespace.Joseph Myers1-1/+1
2013-06-03BZ #15536: Fix ulp for 128-bit IBM long double.Carlos O'Donell1-11/+26
In 128-bit IBM long double the precision of the type decreases as you approach subnormal numbers, equaling that of a double for subnormal numbers. Therefore adjust the computation in ulp to use 2^(MIN_EXP - MANT_DIG) which is correct for FP_SUBNORMAL for all types.
2013-05-31Link extra-libs consistently with libc and ld.so.Joseph Myers1-5/+0
2013-05-24Fix ldbl-96 hypotl of subnormals (bug 15529).Joseph Myers1-0/+13
2013-05-24Test drem and pow10 in libm-test.inc.Joseph Myers1-5/+63
2013-05-24Use same tests for isfinite/finite, lgamma/gamma.Joseph Myers1-44/+18
2013-05-24Correctly compute ulp near zero.Carlos O'Donell1-48/+93
The current value used for ulp near zero is wrong, and this commit fixes it such that ulp(0) is the smallest subnormal value nearest to zero, which makes the most sense for testing values near zero. Note that this is not what Java does; they use the nearest normal value, which is less accurate than what we want for glibc. Note that there is no correct implementation of ulp since there is no strict mathmatical definition that is accepted by all groups using IEEE 754. Previously with the large ulp values near zero there were tests that previously passed, but were in fact billions of ulp away from the precise answer. With this commit we now need to disable one of the cpow tests which is revealed to be inaccurate (bug 14473). --- 2013-05-24 Carlos O'Donell <carlos@redhat.com> * math/libm-test.inc (MAX_EXP): Define. (ULPDIFF): Define. (ulp): New function. (check_float_internal): Use ULPDIFF. (cpow_test): Disable failing test. (check_ulp): Test ulp() implemetnation. (main): Call check_ulp before starting tests.
2013-05-24Remove libm-test START_DATA and END_DATA.Joseph Myers2-347/+0
2013-05-24Make libm-test START and END into ordinary macros.Joseph Myers2-197/+176
2013-05-22Don't include function names in test data in generated libm-test.c.Joseph Myers2-132/+241
2013-05-22Don't include expected results in libm-test test names.Joseph Myers1-4/+1
2013-05-19Handle sincos with generic libm-test logic.Joseph Myers3-86/+56
2013-05-19Simplify gen-libm-test.pl handling of tests with extra outputs.Joseph Myers1-65/+17
2013-05-18Don't disable CMPLXL macro for __NO_LONG_DOUBLE_MATH (bug 15488).Joseph Myers3-9/+1
2013-05-18Make libm-test look up ulps by name at runtime.Joseph Myers2-228/+225
2013-05-17Fix remainder exceptions and directed-rounding results (bugs 15480, 15485).Joseph Myers1-7/+162
2013-05-17Simplify libm-test extra-output initialization.Joseph Myers2-37/+30
2013-05-17Don't handle ulps for integer tests in libm-test.inc.Joseph Myers1-15/+3
2013-05-17Test more cases of "inexact" exceptions in libm-test.inc.Joseph Myers1-1119/+1132
2013-05-16Test for errno setting in more pole error cases.Joseph Myers1-15/+15
2013-05-16Remove ENOSYS tests in libm-test.inc.Joseph Myers1-649/+0
2013-05-16Remove libm-test support for TEST_* inside functions.Joseph Myers2-90/+28
2013-05-16Convert TEST_extra tests from code to data.Joseph Myers1-48/+75
2013-05-16De-stringify constants in math/atest-exp2.c.Richard Henderson1-42/+32
2013-05-16Support testing "inexact" exceptions in libm-test.inc.Joseph Myers1-392/+399
2013-05-16Test for errno setting in more overflow error cases.Joseph Myers1-81/+79
2013-05-16Convert TEST_cc_c tests from code to data.Joseph Myers1-14/+36
2013-05-16Convert TEST_f_L tests from code to data.Joseph Myers1-769/+780
2013-05-15Remove const attribute on get_log2Peter Collingbourne1-1/+0
This function is not const, as it can modify log2_m and log2_m_inited.
2013-05-15Convert TEST_f_l tests from code to data.Joseph Myers1-167/+179
2013-05-15Consistently use TEST_f_L in tests of llrint and llround.Joseph Myers1-6/+6
2013-05-15Convert TEST_f_b tests from code to data.Joseph Myers1-67/+117
2013-05-15Test for errno setting in more domain error cases.Joseph Myers1-53/+53
2013-05-15Disable libm-test errno testing for TEST_INLINE.Joseph Myers1-0/+2
2013-05-15Convert TEST_ff_i tests from code to data.Joseph Myers1-108/+154
2013-05-14Fix whitespace in RUN_TEST_LOOP_2_f.Joseph Myers1-1/+1
2013-05-14Correct types of fields in libm-test.inc structures.Joseph Myers1-2/+2