From 38ae768d88c47dd06030104eb3376212b0d8d164 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Fri, 22 May 2009 08:35:15 -0700 Subject: Fix errno for IBM long double. After the last addition to the math test suite PPC routines haven't been adjusted so far. --- sysdeps/ieee754/ldbl-128ibm/s_expm1l.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'sysdeps/ieee754/ldbl-128ibm/s_expm1l.c') diff --git a/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c b/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c index 7350065..f631edd 100644 --- a/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c +++ b/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c @@ -51,6 +51,7 @@ License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#include #include "math.h" #include "math_private.h" #include @@ -120,7 +121,10 @@ __expm1l (long double x) /* Overflow. */ if (x > maxlog) - return (big * big); + { + __set_errno (ERANGE); + return (big * big); + } /* Minimum value. */ if (x < minarg) -- cgit v1.1