If SOFTFLOAT is defined provide glue for the softfloat rounding functions.

This commit is contained in:
mark 1997-10-06 00:23:54 +00:00
parent a0e35b1248
commit e416694cf0
2 changed files with 10 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpgetround.c,v 1.1 1996/05/12 20:29:21 mark Exp $ */
/* $NetBSD: fpgetround.c,v 1.2 1997/10/06 00:23:56 mark Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -56,5 +56,9 @@
fp_rnd
fpgetround()
{
#ifdef SOFT_FLOAT
return(sfp_getround());
#else
return(FP_RN);
#endif
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: fpsetround.c,v 1.1 1996/05/12 20:29:33 mark Exp $ */
/* $NetBSD: fpsetround.c,v 1.2 1997/10/06 00:23:54 mark Exp $ */
/*
* Copyright (c) 1996 Mark Brinicombe
@ -56,5 +56,9 @@ fp_rnd
fpsetround(rnd_dir)
fp_rnd rnd_dir;
{
#ifdef SOFTFLOAT
spf_setround(rnd_dir);
#else
abort();
#endif
}