diff --git a/lib/libc/arch/arm32/gen/fpgetround.c b/lib/libc/arch/arm32/gen/fpgetround.c index 93d080b72e10..35761c851bcf 100644 --- a/lib/libc/arch/arm32/gen/fpgetround.c +++ b/lib/libc/arch/arm32/gen/fpgetround.c @@ -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 } diff --git a/lib/libc/arch/arm32/gen/fpsetround.c b/lib/libc/arch/arm32/gen/fpsetround.c index a5697798c525..58712fb97a6a 100644 --- a/lib/libc/arch/arm32/gen/fpsetround.c +++ b/lib/libc/arch/arm32/gen/fpsetround.c @@ -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 }