summaryrefslogtreecommitdiff
path: root/sys/arch/hppa/spmath/sfmpy.c
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 19:06:04 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>1998-07-02 19:06:04 +0000
commit186df561f20e8ff3f8c74f3f4ef6ac29f67485e2 (patch)
tree8e23f01a9975fe3c59d7ee922be9e679137c65e3 /sys/arch/hppa/spmath/sfmpy.c
parent387f724d77fa7589fc76165f07621db9817fb9b1 (diff)
ansi and fancy gcc
Diffstat (limited to 'sys/arch/hppa/spmath/sfmpy.c')
-rw-r--r--sys/arch/hppa/spmath/sfmpy.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/arch/hppa/spmath/sfmpy.c b/sys/arch/hppa/spmath/sfmpy.c
index 77b363c501a..2368657fc07 100644
--- a/sys/arch/hppa/spmath/sfmpy.c
+++ b/sys/arch/hppa/spmath/sfmpy.c
@@ -1,3 +1,5 @@
+/* $OpenBSD: sfmpy.c,v 1.3 1998/07/02 19:05:58 mickey Exp $ */
+
/*
* Copyright 1996 1995 by Open Software Foundation, Inc.
* All Rights Reserved
@@ -43,7 +45,7 @@
/*
* Single Precision Floating-point Multiply
*/
-
+int
sgl_fmpy(srcptr1,srcptr2,dstptr,status)
sgl_floating_point *srcptr1, *srcptr2, *dstptr;
@@ -273,10 +275,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);
}
inexact = TRUE;
@@ -295,10 +298,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);
}