This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Fix bogus exceptions on exp(double)


This patch fixes exp(double) triggering bogus underflow and overflow
exceptions. More details are in:

http://sourceware.org/bugzilla/show_bug.cgi?id=13705


2012-02-21  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);
-- 
Aurelien Jarno	                        GPG: 1024D/F1BCDB73
aurelien@aurel32.net                 http://www.aurel32.net


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]