about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2009-05-22 08:35:15 -0700
committerUlrich Drepper <drepper@redhat.com>2009-05-22 08:35:15 -0700
commit38ae768d88c47dd06030104eb3376212b0d8d164 (patch)
tree0646aa5dd41d96365cd73a5a658c76642c9cfd21 /sysdeps/ieee754/ldbl-128ibm/s_expm1l.c
parent0323b051be1bee42592e6813064031aacfd6063d (diff)
downloadglibc-38ae768d88c47dd06030104eb3376212b0d8d164.tar.gz
glibc-38ae768d88c47dd06030104eb3376212b0d8d164.tar.xz
glibc-38ae768d88c47dd06030104eb3376212b0d8d164.zip
Fix errno for IBM long double.
After the last addition to the math test suite PPC routines haven't
been adjusted so far.
Diffstat (limited to 'sysdeps/ieee754/ldbl-128ibm/s_expm1l.c')
-rw-r--r--sysdeps/ieee754/ldbl-128ibm/s_expm1l.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c b/sysdeps/ieee754/ldbl-128ibm/s_expm1l.c
index 735006575f..f631eddf59 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 <errno.h>
 #include "math.h"
 #include "math_private.h"
 #include <math_ldbl_opt.h>
@@ -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)