Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/lib/libc/arch/mips/gen Fix bogons.



details:   https://anonhg.NetBSD.org/src/rev/8ac7dd893596
branches:  trunk
changeset: 482788:8ac7dd893596
user:      mycroft <mycroft%NetBSD.org@localhost>
date:      Tue Feb 22 03:28:04 2000 +0000

description:
Fix bogons.

diffstat:

 lib/libc/arch/mips/gen/sf_fpsetmask.c   |   3 ++-
 lib/libc/arch/mips/gen/sf_fpsetround.c  |  10 +++-------
 lib/libc/arch/mips/gen/sf_fpsetsticky.c |   3 ++-
 3 files changed, 7 insertions(+), 9 deletions(-)

diffs (65 lines):

diff -r 7aed01f7856d -r 8ac7dd893596 lib/libc/arch/mips/gen/sf_fpsetmask.c
--- a/lib/libc/arch/mips/gen/sf_fpsetmask.c     Tue Feb 22 03:14:20 2000 +0000
+++ b/lib/libc/arch/mips/gen/sf_fpsetmask.c     Tue Feb 22 03:28:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sf_fpsetmask.c,v 1.3 2000/02/22 03:14:21 mycroft Exp $ */
+/*     $NetBSD: sf_fpsetmask.c,v 1.4 2000/02/22 03:28:04 mycroft Exp $ */
 
 /*
  * Written by J.T. Conklin, Apr 11, 1995
@@ -7,6 +7,7 @@
 
 #include <ieeefp.h>
 
+int _mips_sfp_getmask __P((void));
 void _mips_sfp_setmask __P((int mask));
 
 fp_except
diff -r 7aed01f7856d -r 8ac7dd893596 lib/libc/arch/mips/gen/sf_fpsetround.c
--- a/lib/libc/arch/mips/gen/sf_fpsetround.c    Tue Feb 22 03:14:20 2000 +0000
+++ b/lib/libc/arch/mips/gen/sf_fpsetround.c    Tue Feb 22 03:28:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sf_fpsetround.c,v 1.3 2000/02/22 03:14:22 mycroft Exp $        */
+/*     $NetBSD: sf_fpsetround.c,v 1.4 2000/02/22 03:28:04 mycroft Exp $        */
 
 /*
  * Copyright (c) 1996 Mark Brinicombe
@@ -52,6 +52,7 @@
  * soft float FP libraries.
  */
 
+int _mips_sfp_getround __P((void));
 void _mips_sfp_setround __P((int rnd_dir));
 
 fp_rnd
@@ -60,12 +61,7 @@
 {
        fp_rnd old_rnd;
 
-       old_rnd = fpgetround();
-
-#ifdef SOFTFLOAT
+       old_rnd = _mips_sfp_getround();
        _mips_sfp_setround(rnd_dir);
-#else
-       abort();
-#endif
        return(old_rnd);
 }
diff -r 7aed01f7856d -r 8ac7dd893596 lib/libc/arch/mips/gen/sf_fpsetsticky.c
--- a/lib/libc/arch/mips/gen/sf_fpsetsticky.c   Tue Feb 22 03:14:20 2000 +0000
+++ b/lib/libc/arch/mips/gen/sf_fpsetsticky.c   Tue Feb 22 03:28:04 2000 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: sf_fpsetsticky.c,v 1.3 2000/02/22 03:14:22 mycroft Exp $       */
+/*     $NetBSD: sf_fpsetsticky.c,v 1.4 2000/02/22 03:28:05 mycroft Exp $       */
 
 /*
  * Written by J.T. Conklin, Apr 11, 1995
@@ -7,6 +7,7 @@
 
 #include <ieeefp.h>
 
+int _mips_sfp_getsticky __P((void));
 void _mips_sfp_setsticky __P((int except));
 
 fp_except



Home | Main Index | Thread Index | Old Index