Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/powerpc/gen Add some casts to make lint shut u...



details:   https://anonhg.NetBSD.org/src/rev/9848a5c39e3d
branches:  trunk
changeset: 503555:9848a5c39e3d
user:      wiz <wiz%NetBSD.org@localhost>
date:      Thu Feb 08 18:28:07 2001 +0000

description:
Add some casts to make lint shut up. Reviewed by christos.

diffstat:

 lib/libc/arch/powerpc/gen/fpgetmask.c   |  4 ++--
 lib/libc/arch/powerpc/gen/fpgetround.c  |  4 ++--
 lib/libc/arch/powerpc/gen/fpgetsticky.c |  4 ++--
 lib/libc/arch/powerpc/gen/fpsetmask.c   |  4 ++--
 lib/libc/arch/powerpc/gen/fpsetround.c  |  4 ++--
 lib/libc/arch/powerpc/gen/fpsetsticky.c |  4 ++--
 6 files changed, 12 insertions(+), 12 deletions(-)

diffs (102 lines):

diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpgetmask.c
--- a/lib/libc/arch/powerpc/gen/fpgetmask.c     Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetmask.c     Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetmask.c,v 1.1 1999/07/07 01:55:07 danw Exp $       */
+/*     $NetBSD: fpgetmask.c,v 1.2 2001/02/08 18:28:07 wiz Exp $        */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -45,5 +45,5 @@
        u_int64_t fpscr;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       return ((fpscr >> 3) & 0x1f);
+       return ((fp_except)((fpscr >> 3) & 0x1f));
 }
diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpgetround.c
--- a/lib/libc/arch/powerpc/gen/fpgetround.c    Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetround.c    Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetround.c,v 1.1 1999/07/07 01:55:08 danw Exp $      */
+/*     $NetBSD: fpgetround.c,v 1.2 2001/02/08 18:28:07 wiz Exp $       */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -45,5 +45,5 @@
        u_int64_t fpscr;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       return (fpscr & 0x3);
+       return ((fp_rnd)(fpscr & 0x3));
 }
diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpgetsticky.c
--- a/lib/libc/arch/powerpc/gen/fpgetsticky.c   Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetsticky.c   Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetsticky.c,v 1.1 1999/07/07 01:55:08 danw Exp $     */
+/*     $NetBSD: fpgetsticky.c,v 1.2 2001/02/08 18:28:07 wiz Exp $      */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -45,5 +45,5 @@
        u_int64_t fpscr;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       return ((fpscr >> 25) & 0x1f);
+       return ((fp_except)((fpscr >> 25) & 0x1f));
 }
diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpsetmask.c
--- a/lib/libc/arch/powerpc/gen/fpsetmask.c     Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpsetmask.c     Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetmask.c,v 1.1 1999/07/07 01:55:08 danw Exp $       */
+/*     $NetBSD: fpsetmask.c,v 1.2 2001/02/08 18:28:08 wiz Exp $        */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
        fp_rnd old;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       old = (fpscr >> 3) & 0x1f;
+       old = (fp_rnd)((fpscr >> 3) & 0x1f);
        fpscr = (fpscr & 0xffffff07) | (mask << 3);
        __asm__ __volatile("mtfsf 0xff,%0" :: "f"(fpscr));
        return (old);
diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpsetround.c
--- a/lib/libc/arch/powerpc/gen/fpsetround.c    Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpsetround.c    Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetround.c,v 1.1 1999/07/07 01:55:08 danw Exp $      */
+/*     $NetBSD: fpsetround.c,v 1.2 2001/02/08 18:28:08 wiz Exp $       */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
        fp_rnd old;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       old = fpscr & 0x3;
+       old = (fp_rnd)(fpscr & 0x3);
        fpscr = (fpscr & 0xfffffffc) | rnd_dir;
        __asm__ __volatile("mtfsf 0xff,%0" :: "f"(fpscr));
        return (old);
diff -r 483b43981f62 -r 9848a5c39e3d lib/libc/arch/powerpc/gen/fpsetsticky.c
--- a/lib/libc/arch/powerpc/gen/fpsetsticky.c   Thu Feb 08 18:17:24 2001 +0000
+++ b/lib/libc/arch/powerpc/gen/fpsetsticky.c   Thu Feb 08 18:28:07 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetsticky.c,v 1.1 1999/07/07 01:55:08 danw Exp $     */
+/*     $NetBSD: fpsetsticky.c,v 1.2 2001/02/08 18:28:08 wiz Exp $      */
 
 /*
  * Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -47,7 +47,7 @@
        fp_rnd old;
 
        __asm__ __volatile("mffs %0" : "=f"(fpscr));
-       old = (fpscr >> 25) & 0x1f;
+       old = (fp_except)((fpscr >> 25) & 0x1f);
        fpscr = (fpscr & 0xc1ffffff) | (mask << 25);
        __asm__ __volatile("mtfsf 0xff,%0" :: "f"(fpscr));
        return (old);



Home | Main Index | Thread Index | Old Index