summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/spmath/sfdiv.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/arch/hppa/spmath/sfdiv.c')
-rw-r--r--sys/arch/hppa/spmath/sfdiv.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hppa/spmath/sfdiv.c b/sys/arch/hppa/spmath/sfdiv.c
index b1e8c1bb29b..9ea439aed50 100644
--- a/sys/arch/hppa/spmath/sfdiv.c
+++ b/sys/arch/hppa/spmath/sfdiv.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: sfdiv.c,v 1.3 1998/07/02 19:05:56 mickey Exp $ */
+
/*
* Copyright 1996 1995 by Open Software Foundation, Inc.
* All Rights Reserved
@@ -43,7 +45,7 @@
/*
* Single Precision Floating-point Divide
*/
-
+int
sgl_fdiv(srcptr1,srcptr2,dstptr,status)
sgl_floating_point *srcptr1, *srcptr2, *dstptr;
@@ -289,10 +291,11 @@ unsigned int *status;
*/
Sgl_setwrapped_exponent(result,dest_exponent,ovfl);
*dstptr = result;
- if (inexact)
+ if (inexact) {
if (Is_inexacttrap_enabled())
return(OVERFLOWEXCEPTION | INEXACTEXCEPTION);
else Set_inexactflag();
+ }
return(OVERFLOWEXCEPTION);
}
Set_overflowflag();
@@ -311,10 +314,11 @@ unsigned int *status;
*/
Sgl_setwrapped_exponent(result,dest_exponent,unfl);
*dstptr = result;
- if (inexact)
+ if (inexact) {
if (Is_inexacttrap_enabled())
return(UNDERFLOWEXCEPTION | INEXACTEXCEPTION);
else Set_inexactflag();
+ }
return(UNDERFLOWEXCEPTION);
}