Source-Changes-HG archive

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

[src/trunk]: src/lib/libc/arch/hppa/gen Shut lint up.



details:   https://anonhg.NetBSD.org/src/rev/d747e949f9da
branches:  trunk
changeset: 778354:d747e949f9da
user:      skrll <skrll%NetBSD.org@localhost>
date:      Fri Mar 23 09:34:09 2012 +0000

description:
Shut lint up.

>From he@

diffstat:

 lib/libc/arch/hppa/gen/flt_rounds.c  |  6 +++---
 lib/libc/arch/hppa/gen/fpgetmask.c   |  6 +++---
 lib/libc/arch/hppa/gen/fpgetround.c  |  6 +++---
 lib/libc/arch/hppa/gen/fpgetsticky.c |  6 +++---
 lib/libc/arch/hppa/gen/fpsetmask.c   |  6 +++---
 lib/libc/arch/hppa/gen/fpsetround.c  |  6 +++---
 lib/libc/arch/hppa/gen/fpsetsticky.c |  6 +++---
 7 files changed, 21 insertions(+), 21 deletions(-)

diffs (181 lines):

diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/flt_rounds.c
--- a/lib/libc/arch/hppa/gen/flt_rounds.c       Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/flt_rounds.c       Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: flt_rounds.c,v 1.4 2005/12/24 21:42:32 perry Exp $     */
+/*     $NetBSD: flt_rounds.c,v 1.5 2012/03/23 09:34:09 skrll Exp $     */
 
 /*     $OpenBSD: flt_rounds.c,v 1.3 2002/10/21 18:41:05 mickey Exp $   */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: flt_rounds.c,v 1.4 2005/12/24 21:42:32 perry Exp $");
+__RCSID("$NetBSD: flt_rounds.c,v 1.5 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -27,5 +27,5 @@
        uint64_t fpsr;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr));
-       return map[(fpsr >> 41) & 0x03];
+       return map[(unsigned int)(fpsr >> 41) & 0x03];
 }
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpgetmask.c
--- a/lib/libc/arch/hppa/gen/fpgetmask.c        Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpgetmask.c        Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetmask.c,v 1.4 2005/12/24 21:42:32 perry Exp $      */
+/*     $NetBSD: fpgetmask.c,v 1.5 2012/03/23 09:34:09 skrll Exp $      */
 
 /*     $OpenBSD: fpgetmask.c,v 1.3 2002/10/21 18:41:05 mickey Exp $    */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetmask.c,v 1.4 2005/12/24 21:42:32 perry Exp $");
+__RCSID("$NetBSD: fpgetmask.c,v 1.5 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -20,5 +20,5 @@
        uint64_t fpsr;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr));
-       return ((fpsr >> 32) & 0x1f);
+       return ((fp_except)(fpsr >> 32) & 0x1f);
 }
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpgetround.c
--- a/lib/libc/arch/hppa/gen/fpgetround.c       Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpgetround.c       Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetround.c,v 1.4 2005/12/24 21:42:32 perry Exp $     */
+/*     $NetBSD: fpgetround.c,v 1.5 2012/03/23 09:34:09 skrll Exp $     */
 
 /*     $OpenBSD: fpgetround.c,v 1.3 2002/10/21 18:41:05 mickey Exp $   */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetround.c,v 1.4 2005/12/24 21:42:32 perry Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.5 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -20,5 +20,5 @@
        uint64_t fpsr;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr));
-       return ((fpsr >> 41) & 0x3);
+       return ((fp_rnd)(fpsr >> 41) & 0x3);
 }
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpgetsticky.c
--- a/lib/libc/arch/hppa/gen/fpgetsticky.c      Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpgetsticky.c      Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpgetsticky.c,v 1.4 2005/12/24 21:42:32 perry Exp $    */
+/*     $NetBSD: fpgetsticky.c,v 1.5 2012/03/23 09:34:09 skrll Exp $    */
 
 /*     $OpenBSD: fpgetsticky.c,v 1.3 2002/10/21 18:41:05 mickey Exp $  */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetsticky.c,v 1.4 2005/12/24 21:42:32 perry Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.5 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -20,5 +20,5 @@
        uint64_t fpsr;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr));
-       return ((fpsr >> 59) & 0x1f);
+       return ((fp_except)(fpsr >> 59) & 0x1f);
 }
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpsetmask.c
--- a/lib/libc/arch/hppa/gen/fpsetmask.c        Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpsetmask.c        Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetmask.c,v 1.5 2009/01/25 16:44:41 skrll Exp $      */
+/*     $NetBSD: fpsetmask.c,v 1.6 2012/03/23 09:34:09 skrll Exp $      */
 
 /*     $OpenBSD: fpsetmask.c,v 1.4 2004/01/05 06:06:16 otto Exp $      */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.5 2009/01/25 16:44:41 skrll Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.6 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -21,7 +21,7 @@
        fp_except old;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m"(fpsr) : "r"(&fpsr) : "memory");
-       old = (fpsr >> 32) & 0x1f;
+       old = (fp_except)(fpsr >> 32) & 0x1f;
        fpsr = (fpsr & 0xffffffe000000000LL) | ((uint64_t)(mask & 0x1f) << 32);
        __asm volatile("fldd 0(%0),%%fr0" : : "r"(&fpsr) : "memory");
        return (old);
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpsetround.c
--- a/lib/libc/arch/hppa/gen/fpsetround.c       Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpsetround.c       Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetround.c,v 1.5 2009/01/25 16:44:41 skrll Exp $     */
+/*     $NetBSD: fpsetround.c,v 1.6 2012/03/23 09:34:09 skrll Exp $     */
 
 /*     $OpenBSD: fpsetround.c,v 1.3 2002/10/21 18:41:05 mickey Exp $   */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.5 2009/01/25 16:44:41 skrll Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.6 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -21,7 +21,7 @@
        fp_rnd old;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr) : "memory");
-       old = (fpsr >> 41) & 0x03;
+       old = (fp_rnd)(fpsr >> 41) & 0x03;
        fpsr = (fpsr & 0xfffff9ff00000000LL) |
            ((uint64_t)(rnd_dir & 0x03) << 41);
        __asm volatile("fldd 0(%0),%%fr0" : : "r" (&fpsr) : "memory");
diff -r 5ca1d65f729e -r d747e949f9da lib/libc/arch/hppa/gen/fpsetsticky.c
--- a/lib/libc/arch/hppa/gen/fpsetsticky.c      Thu Mar 22 23:46:49 2012 +0000
+++ b/lib/libc/arch/hppa/gen/fpsetsticky.c      Fri Mar 23 09:34:09 2012 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: fpsetsticky.c,v 1.5 2009/01/25 16:44:41 skrll Exp $    */
+/*     $NetBSD: fpsetsticky.c,v 1.6 2012/03/23 09:34:09 skrll Exp $    */
 
 /*     $OpenBSD: fpsetsticky.c,v 1.4 2004/01/05 06:06:16 otto Exp $    */
 
@@ -8,7 +8,7 @@
 
 #include <sys/cdefs.h>
 #if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.5 2009/01/25 16:44:41 skrll Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.6 2012/03/23 09:34:09 skrll Exp $");
 #endif /* LIBC_SCCS and not lint */
 
 #include <sys/types.h>
@@ -21,7 +21,7 @@
        fp_except old;
 
        __asm volatile("fstd %%fr0,0(%1)" : "=m" (fpsr) : "r" (&fpsr) : "memory");
-       old = (fpsr >> 59) & 0x1f;
+       old = (fp_except)(fpsr >> 59) & 0x1f;
        fpsr = (fpsr & 0x07ffffff00000000LL) | ((uint64_t)(mask & 0x1f) << 59);
        __asm volatile("fldd 0(%0),%%fr0" : : "r" (&fpsr) : "memory");
 



Home | Main Index | Thread Index | Old Index