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 Revert unneeded casts.
details: https://anonhg.NetBSD.org/src/rev/555a0062fd14
branches: trunk
changeset: 778241:555a0062fd14
user: matt <matt%NetBSD.org@localhost>
date: Tue Mar 20 16:19:56 2012 +0000
description:
Revert unneeded casts.
diffstat:
lib/libc/arch/mips/gen/fpgetmask.c | 6 +++---
lib/libc/arch/mips/gen/fpgetsticky.c | 6 +++---
lib/libc/arch/mips/gen/fpsetmask.c | 6 +++---
lib/libc/arch/mips/gen/fpsetsticky.c | 6 +++---
4 files changed, 12 insertions(+), 12 deletions(-)
diffs (100 lines):
diff -r d8a49060334b -r 555a0062fd14 lib/libc/arch/mips/gen/fpgetmask.c
--- a/lib/libc/arch/mips/gen/fpgetmask.c Tue Mar 20 14:59:36 2012 +0000
+++ b/lib/libc/arch/mips/gen/fpgetmask.c Tue Mar 20 16:19:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetmask.c,v 1.7 2012/03/20 10:51:23 he Exp $ */
+/* $NetBSD: fpgetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetmask.c,v 1.7 2012/03/20 10:51:23 he Exp $");
+__RCSID("$NetBSD: fpgetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -24,5 +24,5 @@
fp_except x;
__asm("cfc1 %0,$31" : "=r" (x));
- return ((unsigned int)x >> 7) & 0x1f;
+ return (x >> 7) & 0x1f;
}
diff -r d8a49060334b -r 555a0062fd14 lib/libc/arch/mips/gen/fpgetsticky.c
--- a/lib/libc/arch/mips/gen/fpgetsticky.c Tue Mar 20 14:59:36 2012 +0000
+++ b/lib/libc/arch/mips/gen/fpgetsticky.c Tue Mar 20 16:19:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetsticky.c,v 1.7 2012/03/20 10:51:24 he Exp $ */
+/* $NetBSD: fpgetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetsticky.c,v 1.7 2012/03/20 10:51:24 he Exp $");
+__RCSID("$NetBSD: fpgetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -24,5 +24,5 @@
fp_except x;
__asm("cfc1 %0,$31" : "=r" (x));
- return ((unsigned int)x >> 2) & 0x1f;
+ return (x >> 2) & 0x1f;
}
diff -r d8a49060334b -r 555a0062fd14 lib/libc/arch/mips/gen/fpsetmask.c
--- a/lib/libc/arch/mips/gen/fpsetmask.c Tue Mar 20 14:59:36 2012 +0000
+++ b/lib/libc/arch/mips/gen/fpsetmask.c Tue Mar 20 16:19:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetmask.c,v 1.7 2012/03/20 10:51:24 he Exp $ */
+/* $NetBSD: fpsetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetmask.c,v 1.7 2012/03/20 10:51:24 he Exp $");
+__RCSID("$NetBSD: fpsetmask.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -31,5 +31,5 @@
__asm("ctc1 %0,$31" : : "r" (new));
- return ((unsigned int)old >> 7) & 0x1f;
+ return (old >> 7) & 0x1f;
}
diff -r d8a49060334b -r 555a0062fd14 lib/libc/arch/mips/gen/fpsetsticky.c
--- a/lib/libc/arch/mips/gen/fpsetsticky.c Tue Mar 20 14:59:36 2012 +0000
+++ b/lib/libc/arch/mips/gen/fpsetsticky.c Tue Mar 20 16:19:56 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetsticky.c,v 1.7 2012/03/20 10:51:24 he Exp $ */
+/* $NetBSD: fpsetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $ */
/*
* Written by J.T. Conklin, Apr 11, 1995
@@ -7,7 +7,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetsticky.c,v 1.7 2012/03/20 10:51:24 he Exp $");
+__RCSID("$NetBSD: fpsetsticky.c,v 1.8 2012/03/20 16:19:56 matt Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -31,5 +31,5 @@
__asm("ctc1 %0,$31" : : "r" (new));
- return ((unsigned int)old >> 2) & 0x1f;
+ return (old >> 2) & 0x1f;
}
Home |
Main Index |
Thread Index |
Old Index