about summary refs log tree commit diff
path: root/math
Commit message (Collapse)AuthorAgeFilesLines
* Use M_SQRT1_2l instead of local M_SQRT_2_2 in libm-test.inc.Joseph Myers2013-05-091-2/+1
|
* Use M_PI_34l consistently in libm-test.inc.Joseph Myers2013-05-091-2/+2
|
* Use decimal constants in defining M_* in libm-test.inc.Joseph Myers2013-05-091-5/+5
|
* Factor out initializers for libm-test.inc constants.Joseph Myers2013-05-081-19/+28
|
* Use correct TEST_* macros for jn, ldexp and yn tests.Joseph Myers2013-05-081-100/+101
|
* Move some libm-test logic for running tests from gen-libm-test.pl to ↵Joseph Myers2013-05-082-75/+213
| | | | libm-test.inc.
* Improve tgamma accuracy (bugs 2546, 2560, 5159, 15426).Joseph Myers2013-05-082-1/+502
|
* Initialize x in frexp, modf, remqou tests.Joseph Myers2013-05-061-0/+3
|
* Consistently use TEST_f_f1 in gamma tests.Joseph Myers2013-05-061-5/+5
|
* PowerPC: fix hypot/hypof FP exceptionsAdhemerval Zanella2013-05-061-0/+2
| | | | | This patch fixes hypot/hypotf spurious floating-point exceptions generate by internal operations.
* Remove unused libm-test expected-failure mechanism.Joseph Myers2013-05-043-125/+44
|
* Use static initializers for constant variables in libm-test.inc.Joseph Myers2013-05-041-30/+19
|
* Consistently use TEST_f_f1 in lgamma tests.Joseph Myers2013-05-031-10/+8
|
* Don't use IGNORE_ZERO_INF_SIGN in hypot tests.Joseph Myers2013-05-031-2/+2
|
* Fix catan, catanh spurious underflows (bug 15423).Joseph Myers2013-05-017-97/+528
|
* Fix catan, catanh inaccuracy from atan2 denominators near 0 (bug 15416).Joseph Myers2013-04-307-12/+370
|
* Integrate errno testing better in libm-test.inc.Joseph Myers2013-04-292-199/+127
|
* Add missing semicolons to libm-test.inc tests.Joseph Myers2013-04-291-363/+363
|
* Fix catan, catanh spurious overflows (bug 15409).Joseph Myers2013-04-277-90/+338
|
* Fix catan, catanh missing underflows (bug 15406).Joseph Myers2013-04-267-6/+128
|
* Fix csin, csinh, ccos, ccosh missing underflows (bug 15405).Joseph Myers2013-04-2610-0/+129
|
* math: Use accurate answers for cos and sincos.Carlos O'Donell2013-04-241-10/+10
| | | | | | | | | | | | | Use the most accurate hex literals possible for the answers to the cos and sincos tests that vary according to the error in the rounding of PI/2. --- 2013-04-24 Carlos O'Donell <carlos@redhat.com> * math/libm-test.inc (cos_test): Use accurate hex constants. (sincost_test): Likewise.
* Add catan, catanh tests at +/- 1 and +/- i.Joseph Myers2013-04-241-0/+18
|
* Use suffixed floating-point constants in float and long double catan/catanh.Joseph Myers2013-04-244-28/+28
|
* Fix catan, catanh inaccuracy through use of log (bug 15394).Joseph Myers2013-04-247-9/+109
|
* libm-test.inc: Fix tests where cos(PI/2) != 0.Carlos O'Donell2013-04-111-2/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The value of PI is never exactly PI in any floating point representation, and the value of PI/2 is never PI/2. It is wrong to expect cos(M_PI_2l) to return 0, instead it will return an answer that is non-zero because M_PI_2l doesn't round to exactly PI/2 in the type used. That is to say that the correct answer is to do the following: * Take PI or PI/2. * Round to the floating point representation. * Take the rounded value and compute an infinite precision cos or sin. * Use the rounded result of the infinite precision cos or sin as the answer to the test. I used printf to do the type rounding, and Wolfram's Alpha to do the infinite precision cos calculations. The following changes bring x86-64 and x86 to 1/2 ulp for two tests. It shows that the x86 cos implementation is quite good, and that our test are flawed. Unfortunately given that the rounding errors are type dependent we need to fix this for each type. No regressions on x86-64 or x86. --- 2013-04-11 Carlos O'Donell <carlos@redhat.com> * math/libm-test.inc (cos_test): Fix PI/2 test. (sincos_test): Likewise. * sysdeps/x86_64/fpu/libm-test-ulps: Regenerate. * sysdeps/i386/fpu/libm-test-ulps: Regenerate.
* Don't use run-via-rtld-prefix for anything other than testsSiddhesh Poyarekar2013-04-111-1/+1
| | | | | | | | | | run-via-rtld-prefix checks whether the program to be run is a static test and skips if it is. This is fine, except that it assumes that the program to be run is the second $^, which is true only for tests. This change creates an rtld-prefix, which is simply the dynamic linker prefix with the necessary arguments and uses that in the non-test targets.
* README.libm-test: Use testrun.sh to run libm test.Carlos O'Donell2013-04-061-2/+1
| | | | | | | | | | | | Document the use of the convenience testrun.sh script for running the libm test. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> * math/README.libm-test (How can I generate "libm-test-ulps"?): Use testrun.sh to run libm tests.
* New Makefile target `regen-ulps'.Carlos O'Donell2013-04-063-19/+78
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The wiki "Regeneration" page has this to say about update ULPs. "The libm-test-ulps files are semiautomatically updated. To update an ulps baseline, run each of the failing tests (test-float, test-double, etc.) with -u; this will generate a file called ULPs; concatenate each of those files with the existing libm-test-ulps file, after removing any entries for particularly huge numbers of ulps that you do not want to mark as expected. Then run gen-libm-test.pl -n -u FILE where FILE is the concatenated file produced in the previous step. This generates a file called NewUlps which is the new sorted version of libm-test-ulps." The same information is listed in math/README.libm-test, and is a lot of manual work that you often want to run over-and-over again while working on a particular test. The `regen-ulps' convenience target does this automatically for developers. We strictly assume the source tree is readonly and add a new --output-dir option to libm-test.inc to allow for writing out ULPs to $(objpfx). When run the new target does the following: * Starts with the baseline ULPs file. * Runs each of the libm math tests with -u. * Adds new changes seen with -u to the baseline. * Sorts and prepares the test output with gen-libm-test.pl. * Leaves math/NewUlps in your build tree to copy to your source tree, cleanup, and checkin. The math test documentation in math/README.libm-test is updated document the new Makefile target. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> * Makefile.in (regen-ulps): New target. * math/Makefile [ifneq (no,$(PERL)]: Declare regen-ulps with .PHONY. [ifneq (no,$(PERL)] (run-regen-ulps): New variable. [ifneq (no,$(PERL)] (regen-ulps): New target. [ifeq (no,$(PERL)] (regen-ulps): New target. * math/libm-test.inc (ulps_file_name): Define. (output_dir): New variable. (options): Add "output-dir" option. (parse_opt): Handle 'o' case. (main): If output_dir is non-NULL use it as a prefix otherwise use "". * math/README.libm-test: Update `How can I generate "libm-test-ulps"?'
* [BZ #14686, #15336] Fix standard compliance. Don't use hard-coded qNaN values.Thomas Schwinge2013-04-051-0/+25
|
* Fix missing underflow from cexp (bug 14478).Joseph Myers2013-04-034-0/+39
|
* Fix cacosh inaccuracy and spurious exceptions (bug 15327).Joseph Myers2013-04-024-59/+639
|
* New <math.h> macro named issignaling to check for a signaling NaN (sNaN).Thomas Schwinge2013-04-028-15/+177
| | | | It is based on draft TS 18661 and currently enabled as a GNU extension.
* Fix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357).Joseph Myers2013-03-304-0/+1133
|
* Fix casinh inaccuracy near i, imaginary part > 1 (bug 15307).Joseph Myers2013-03-274-0/+491
|
* BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibmAdhemerval Zanella2013-03-221-0/+3
| | | | | | The patch increase the high value to check if expl overflows. Current high mark value is not really correct, the algorithm accepts high values. It also adds a correct wrapper function to check for overflow and underflow.
* libm-test: Properly wrap blocks consisting of several statements.Thomas Schwinge2013-03-211-8/+14
|
* On 32-bit x86, disable certain tests involving sNaN values.Thomas Schwinge2013-03-211-10/+22
| | | | Follow-up to commit 495ded2c8c1eb8c0ac4b54add2dd397852e19cba.
* Fix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285).Joseph Myers2013-03-211-0/+4
|
* Fix casinh inaccuracy for argument with imaginary part 1 (bug 15287).Joseph Myers2013-03-214-0/+332
|
* Fix types of constants in k_casinh*.c.Joseph Myers2013-03-192-4/+4
|
* Fix y1l spurious overflows for ldbl-96 (bug 15283).Joseph Myers2013-03-161-0/+20
|
* Fix spurious underflow exceptions for Bessel functions for ldbl-128 / ↵Joseph Myers2013-03-161-8/+4
| | | | ldbl-128ibm (bug 14155).
* Move "-sNaN" value into a separate variable.Thomas Schwinge2013-03-161-6/+9
|
* * math/libm-test.inc (ldexp_test): Add missing START/END markers.Thomas Schwinge2013-03-151-0/+4
|
* Promote a math test for sNaN handling to the top-level.Thomas Schwinge2013-03-152-1/+337
|
* Use GCC's builtins for generating NaNs.Thomas Schwinge2013-03-152-18/+19
|
* Add one test, removed a duplicated one, add a few comments about missing tests.Thomas Schwinge2013-03-151-1/+15
|
* Better distinguish between NaN/qNaN/sNaN.Thomas Schwinge2013-03-155-600/+600
|
* Enable tests for x86_64, too, which currently are enabled only for x86.Thomas Schwinge2013-03-152-2/+2
|