diff options
author | Ulrich Drepper <drepper@redhat.com> | 1998-02-26 16:30:54 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 1998-02-26 16:30:54 +0000 |
commit | a588b67da48d54f30ae101cf5d2e9fb0778f95a4 (patch) | |
tree | da26bbaf5757df08d89c440c71c54cd4d68b8b84 /sysdeps/alpha | |
parent | d111572f2f7c595060b9bafcadba98d5391d464c (diff) | |
download | glibc-a588b67da48d54f30ae101cf5d2e9fb0778f95a4.tar.gz glibc-a588b67da48d54f30ae101cf5d2e9fb0778f95a4.tar.xz glibc-a588b67da48d54f30ae101cf5d2e9fb0778f95a4.zip |
Update.
1998-02-25 08:28 H.J. Lu <hjl@gnu.org> * math/test-fenv.c (print_rounding): Fix a typo in FE_TOWARDSZERO. * sysdeps/alpha/fpu/fraiseexcpt.c (feraiseexcept): Use a dummy for FE_DIVBYZERO. Kludge for FE_UNDERFLOW. 1998-02-26 14:59 Ulrich Drepper <drepper@cygnus.com> * stdio-common/vfscanf.c [!USE_IN_LIBIO] (inchar): Add missing braces. 1998-02-19 11:00 Zack Weinberg <zack@rabi.phys.columbia.edu> * Makefile.in: Disable built-in rules. 1998-02-21 Andreas Jaeger <aj@arthur.rhein-neckar.de> * sysdeps/i386/fpu/t_exp.c: Move to ... * sysdeps/libm-i387/t_exp.c: ... here. 1998-02-21 13:51 H.J. Lu <hjl@gnu.org> * sysdeps/libm-ieee754/s_exp2f.c (__exp2f_deltatable): Renamed from __exp2_deltatable.
Diffstat (limited to 'sysdeps/alpha')
-rw-r--r-- | sysdeps/alpha/fpu/fraiseexcpt.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sysdeps/alpha/fpu/fraiseexcpt.c b/sysdeps/alpha/fpu/fraiseexcpt.c index 6a53e55e7d..c2a96e3f87 100644 --- a/sysdeps/alpha/fpu/fraiseexcpt.c +++ b/sysdeps/alpha/fpu/fraiseexcpt.c @@ -1,5 +1,5 @@ /* Raise given exceptions. - Copyright (C) 1997 Free Software Foundation, Inc. + Copyright (C) 1997, 1998 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Richard Henderson <rth@tamu.edu>, 1997. @@ -24,7 +24,7 @@ void feraiseexcept (int excepts) { - double tmp; + double tmp, dummy; /* Raise exceptions represented by EXPECTS. But we must raise only one signal at a time. It is important the if the overflow/underflow @@ -45,8 +45,8 @@ feraiseexcept (int excepts) /* Next: division by zero. */ if (FE_DIVBYZERO & excepts) { - __asm__ __volatile__("cmpteq $f31,$f31,%0; divt/sui %0,$f31,%0; trapb" - : "=f"(tmp)); + __asm__ __volatile__("cmpteq $f31,$f31,%1; divt/sui %1,$f31,%0; trapb" + : "=f"(tmp), "=f"(dummy)); } /* Next: overflow. */ @@ -60,7 +60,8 @@ feraiseexcept (int excepts) if (FE_UNDERFLOW & excepts) { __asm__ __volatile__("divt/sui %1,%2,%0; trapb" - : "=f"(tmp) : "f"(DBL_MIN), "f"(16.0)); + : "=f"(tmp) : "f"(DBL_MIN), + "f"((double) (1UL << 60))); } /* Last: inexact. */ |