glibc/glibc-2.16-expf-underflow-exception.patch
2012-06-21 19:06:13 +00:00

32 lines
1003 B
Diff

commit f77f12320635155da728a3c1adb75ff9914cf686
Author: Aurelien Jarno <aurelien@aurel32.net>
Date: Sun Apr 8 22:45:13 2012 +0000
Use __kernel_standard instead of __kernel_standard_f in exp wrapper (bug 13705).
2012-04-08 Aurelien Jarno <aurelien@aurel32.net>
[BZ #13705]
* sysdeps/ieee754/dbl-64/w_exp.c (__exp): Use __kernel_standard
instead of __kernel_standard_f.
diff --git a/sysdeps/ieee754/dbl-64/w_exp.c b/sysdeps/ieee754/dbl-64/w_exp.c
index b584ed8..aa8ff76 100644
--- a/sysdeps/ieee754/dbl-64/w_exp.c
+++ b/sysdeps/ieee754/dbl-64/w_exp.c
@@ -31,12 +31,12 @@ __exp (double x)
if (__builtin_expect (isgreater (x, o_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
- return __kernel_standard_f (x, x, 6);
+ return __kernel_standard (x, x, 6);
}
else if (__builtin_expect (isless (x, u_threshold), 0))
{
if (_LIB_VERSION != _IEEE_)
- return __kernel_standard_f (x, x, 7);
+ return __kernel_standard (x, x, 7);
}
return __ieee754_exp (x);