From 186df561f20e8ff3f8c74f3f4ef6ac29f67485e2 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Thu, 2 Jul 1998 19:06:04 +0000 Subject: ansi and fancy gcc --- sys/arch/hppa/spmath/sfmpy.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'sys/arch/hppa/spmath/sfmpy.c') 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); } -- cgit v1.2.3