Joseph Myers
1a84c3d6d4
Fix log1pl (LDBL_MAX) in FE_UPWARD mode (bug 16564).
...
Bug 16564 is spurious overflow of log1pl (LDBL_MAX) in FE_UPWARD mode,
resulting from log1pl adding 1 to its argument (for arguments not
close to 0), which overflows in that mode. This patch fixes this by
avoiding adding 1 to large arguments (precisely what counts as large
depends on the floating-point format).
Tested x86_64 and x86, and spot-checked log1pl tests on mips64 and
powerpc64.
[BZ #16564 ]
* sysdeps/i386/fpu/s_log1pl.S (__log1pl): Do not add 1 to positive
arguments with exponent 65 or above.
* sysdeps/ieee754/ldbl-128/s_log1pl.c (__log1pl): Do not add 1 to
arguments 0x1p113L or above.
* sysdeps/ieee754/ldbl-128ibm/s_log1pl.c (__log1pl): Do not add 1
to arguments 0x1p107L or above.
* sysdeps/x86_64/fpu/s_log1pl.S (__log1pl): Do not add 1 to
positive arguments with exponent 65 or above.
* math/auto-libm-test-in: Add more tests of log1p.
* math/auto-libm-test-out: Regenerated.
2014-05-14 12:38:56 +00:00
..
2012-04-30 18:56:39 +00:00
2012-04-30 09:38:06 +00:00
2014-05-14 12:35:40 +00:00
2014-05-14 12:35:40 +00:00
2014-05-14 12:35:40 +00:00
2012-04-30 18:56:39 +00:00
2012-04-30 18:56:39 +00:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2012-05-06 18:23:44 +00:00
2011-10-15 20:22:59 -04:00
2011-10-15 20:22:59 -04:00
2014-03-27 18:41:14 +00:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2012-04-18 00:40:13 +02:00
2012-04-18 00:40:13 +02:00
2012-04-18 00:40:13 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2014-03-21 18:13:58 +00:00
2014-03-21 18:13:58 +00:00
2014-03-21 18:13:58 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2012-08-02 21:04:29 +02:00
2013-11-29 16:31:16 +00:00
2011-10-12 11:27:51 -04:00
2011-10-12 11:27:51 -04:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-09 16:59:56 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-05-09 16:59:56 +00:00
2013-06-12 10:36:48 +05:30
2014-05-09 16:59:56 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2012-06-06 10:13:19 -07:00
2014-05-14 12:37:24 +00:00
2012-03-19 06:51:39 -07:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2012-05-07 19:13:08 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2012-03-09 16:09:10 -08:00
2012-03-09 16:09:10 -08:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2012-02-07 00:41:11 +01:00
2012-02-07 00:41:11 +01:00
2014-05-14 12:38:56 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-03-11 22:24:00 +00:00
2012-05-01 15:37:43 +00:00
2012-05-01 15:37:43 +00:00
2013-02-21 22:21:52 +00:00
2013-02-21 22:21:52 +00:00
2013-02-21 22:21:52 +00:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2014-01-01 22:00:23 +10:00
2013-11-29 16:31:16 +00:00