Joseph Myers
52ce486045
Fix cacosh inaccuracy and spurious exceptions (bug 15327).
2013-04-02 22:54:00 +00:00
Thomas Schwinge
572676160d
New <math.h> macro named issignaling to check for a signaling NaN (sNaN).
...
It is based on draft TS 18661 and currently enabled as a GNU extension.
2013-04-02 13:51:02 +02:00
Joseph Myers
ccc8cadf75
Fix casinh inaccuracy for imaginary part < 1.0, real part small (bug 10357).
2013-03-30 13:31:53 +00:00
Joseph Myers
3a7182a14b
Fix casinh inaccuracy near i, imaginary part > 1 (bug 15307).
2013-03-27 14:38:44 +00:00
Adhemerval Zanella
e42a38dd9d
BZ#13889: expl (709.75) wrongly overflows for ldbl-128ibm
...
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.
2013-03-22 12:39:10 -03:00
Thomas Schwinge
bdef0be784
libm-test: Properly wrap blocks consisting of several statements.
2013-03-21 16:07:48 +01:00
Thomas Schwinge
5aa4a1a1fd
On 32-bit x86, disable certain tests involving sNaN values.
...
Follow-up to commit 495ded2c8c
.
2013-03-21 16:05:29 +01:00
Joseph Myers
98c48fe5cc
Fix Bessel function spurious overflows for ldbl-128 / ldbl-128ibm (bug 15285).
2013-03-21 13:57:21 +00:00
Joseph Myers
0a1b2ae6f6
Fix casinh inaccuracy for argument with imaginary part 1 (bug 15287).
2013-03-21 10:27:10 +00:00
Joseph Myers
6b18bea625
Fix types of constants in k_casinh*.c.
2013-03-19 22:38:25 +00:00
Joseph Myers
d2f9799e7c
Fix y1l spurious overflows for ldbl-96 (bug 15283).
2013-03-16 17:51:48 +00:00
Joseph Myers
2a185d32e8
Fix spurious underflow exceptions for Bessel functions for ldbl-128 / ldbl-128ibm (bug 14155).
2013-03-16 17:50:28 +00:00
Thomas Schwinge
6cbec759de
Move "-sNaN" value into a separate variable.
2013-03-16 13:59:52 +01:00
Thomas Schwinge
af00a34d08
* math/libm-test.inc (ldexp_test): Add missing START/END markers.
2013-03-15 19:13:53 +01:00
Thomas Schwinge
495ded2c8c
Promote a math test for sNaN handling to the top-level.
2013-03-15 19:12:10 +01:00
Thomas Schwinge
777b0332c0
Use GCC's builtins for generating NaNs.
2013-03-15 19:10:20 +01:00
Thomas Schwinge
64d063b800
Add one test, removed a duplicated one, add a few comments about missing tests.
2013-03-15 19:08:04 +01:00
Thomas Schwinge
67e971f18f
Better distinguish between NaN/qNaN/sNaN.
2013-03-15 19:06:02 +01:00
Thomas Schwinge
64487e1264
Enable tests for x86_64, too, which currently are enabled only for x86.
2013-03-15 19:02:18 +01:00
Thomas Schwinge
e015e27b90
Fix copy'n'pastos.
2013-03-15 19:00:23 +01:00
Joseph Myers
41c7328e85
Fix spurious underflow exceptions for Bessel functions for double (bug 14155).
2013-03-14 17:47:30 +00:00
Siddhesh Poyarekar
e4f223248e
Fix some testsuite build warning fixes in libm
2013-02-19 21:20:44 +05:30
Joseph Myers
daaa7713e9
Remove bounded-pointers build system support.
2013-02-15 15:07:54 +00:00
Joseph Myers
e97ed6ddbe
Remove bp-sym.h and BP_SYM uses from C code.
2013-02-14 13:12:02 +00:00
Joseph Myers
8cf28c5ebe
Fix casinh spurious underflows away from [-i,i] (bug 15062).
2013-01-31 22:55:29 +00:00
Joseph Myers
728d7b43fc
Fix cacos real-part inaccuracy for result real part near 0 (bug 15023).
2013-01-17 20:25:51 +00:00
David S. Miller
32fcb36dbf
Add 64-bit VIS3 optimized GMP routines for sparc.
...
* math/Makefile: Recognize gmp-sysdep_routines.
* sysdeps/sparc/sparc64/multiarch/Makefile: Add VIS3 optimized GMP routines
to sysdeps.
* sysdeps/sparc/sparc64/multiarch/add_n-vis3.S: New file.
* sysdeps/sparc/sparc64/multiarch/add_n.S: New file.
* sysdeps/sparc/sparc64/multiarch/addmul_1-vis3.S: New file.
* sysdeps/sparc/sparc64/multiarch/addmul_1.S: New file.
* sysdeps/sparc/sparc64/multiarch/mul_1-vis3.S: New file.
* sysdeps/sparc/sparc64/multiarch/mul_1.S: New file.
* sysdeps/sparc/sparc64/multiarch/sub_n-vis3.S: New file.
* sysdeps/sparc/sparc64/multiarch/sub_n.S: New file.
* sysdeps/sparc/sparc64/multiarch/submul_1-vis3.S: New file.
* sysdeps/sparc/sparc64/multiarch/submul_1.S: New file.
2013-01-11 23:39:02 -08:00
Joseph Myers
828beb132d
Use __extension__ with long long in installed headers.
2013-01-10 20:19:45 +00:00
Andreas Schwab
8790af5f9f
Revert "CFLAGS-test-tgmath2.c"
...
This reverts commit 3167bfc62b
.
2013-01-10 10:44:04 +01:00
Andreas Schwab
3167bfc62b
CFLAGS-test-tgmath2.c
2013-01-10 09:59:58 +01:00
Joseph Myers
a9708fed77
Fix casinh, casin overflow (bug 14996).
2013-01-07 14:59:53 +00:00
Joseph Myers
cdc1c96fba
Fix casinh, casin inaccuracy from cancellation (bug 14994).
2013-01-04 13:25:17 +00:00
Joseph Myers
568035b787
Update copyright notices with scripts/update-copyrights.
2013-01-02 19:05:09 +00:00
Mike Frysinger
9c89fca6e0
math: use existing nonnull attribute define
...
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-12-30 13:00:13 -05:00
Joseph Myers
1bead169c3
Fix powl inaccuracy for x86_64 and x86 (bug 13881).
2012-11-28 13:40:54 +00:00
Joseph Myers
7184dcdf26
Disable some fma tests for ldbl-128ibm.
2012-11-22 19:57:58 +00:00
Joseph Myers
0a42601f27
Fix ldbl-128ibm atanl spurious underflows (bug 14871).
2012-11-22 19:56:47 +00:00
Joseph Myers
1468ded38e
Fix ldbl-128ibm hypotl internal underflows (bug 14869).
2012-11-22 14:58:41 +00:00
Joseph Myers
8e27e3cc45
Fix ldbl-128ibm hypotl inaccuracy for arguments with large ratio (bug 14868).
2012-11-22 14:57:22 +00:00
Joseph Myers
c9c0279bcb
Mark some clog / clog10 underflows as expected for IBM long double.
2012-11-22 14:56:14 +00:00
David S. Miller
6d33cc9d9b
Fix spurious underflows in ldbl-128 atan implementation.
...
With help from Joseph Myers.
* sysdeps/ieee754/ldbl-128/s_atanl.c (__atanl): Handle tiny and
very large arguments properly.
* math/libm-test.inc (atan_test): New tests.
(atan2_test): New tests.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
2012-11-19 15:31:24 -08:00
David S. Miller
05b227bdae
Correct tinyness handling in long-double and float y0/y1.
...
With help from Joseph Myers.
* sysdeps/ieee754/flt-32/e_j0f.c (__ieee754_y0f): Adjust tinyness
cutoff to 2**-13.
* sysdeps/ieee754/flt-32/e_j1f.c (__ieee754_y1f): Adjust tinyness
cutoff to 2**-25.
* sysdeps/ieee754/ldbl-128/e_j0l.c (U0): New constant.
( __ieee754_y0l): Avoid arithmetic underflow when 'x' is very
small.
* sysdeps/ieee754/ldbl-128/e_j1l.c (__ieee754_y1l): Likewise.
* math/libm-test.inc (y0_test): New tests.
(y1_test): New tests.
* sysdeps/i386/fpu/libm-test-ulps: Update.
* sysdeps/x86_64/fpu/libm-test-ulps: Update.
* sysdeps/sparc/fpu/libm-test-ulps: Update.
2012-11-18 12:33:53 -08:00
Marcus Shawcroft
2fd8978571
Fix buffer overflow in libm-test.inc check_complex()
2012-11-15 18:02:03 +00:00
Joseph Myers
60e235ee2a
Fix spurious underflows from pow with results close to 1 (bug 14811).
2012-11-07 13:03:31 +00:00
Joseph Myers
82477c28f4
Fix fma underflows with small x * y (bug 14793).
2012-11-06 14:12:54 +00:00
Joseph Myers
a0c2940d67
Fix fma overflow results outside round-to-nearest mode (bug 14797).
2012-11-04 19:26:02 +00:00
Thomas Schwinge
b830319d49
[BZ #157 ] Remove include/stub-tag.h for good.
2012-11-04 19:59:40 +01:00
Joseph Myers
5b5b04d628
Make fma use of Dekker and Knuth algorithms use round-to-nearest (bug 14796).
2012-11-03 19:48:53 +00:00
Joseph Myers
0155d5b26e
Make math.h FP_* macros usable in #if (bug 3439).
2012-11-02 22:11:21 +00:00
Joseph Myers
473611b22d
Fix fma (a, b, c) for small a * b (bugs 14784, 14785).
2012-11-01 16:47:26 +00:00