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 Supress a few lint warnings. s/u_...
details: https://anonhg.NetBSD.org/src/rev/a5c67f9be11c
branches: trunk
changeset: 565345:a5c67f9be11c
user: matt <matt%NetBSD.org@localhost>
date: Sun Apr 04 19:27:19 2004 +0000
description:
Supress a few lint warnings. s/u_int64_t/uint64_t/
diffstat:
lib/libc/arch/powerpc/gen/fpgetmask.c | 7 ++++---
lib/libc/arch/powerpc/gen/fpgetround.c | 8 ++++----
lib/libc/arch/powerpc/gen/fpgetsticky.c | 6 +++---
3 files changed, 11 insertions(+), 10 deletions(-)
diffs (67 lines):
diff -r ee762d641911 -r a5c67f9be11c lib/libc/arch/powerpc/gen/fpgetmask.c
--- a/lib/libc/arch/powerpc/gen/fpgetmask.c Sun Apr 04 19:26:21 2004 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetmask.c Sun Apr 04 19:27:19 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetmask.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
+/* $NetBSD: fpgetmask.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -50,11 +50,12 @@
#define MASKBITS (FPSCR_VE|FPSCR_OE|FPSCR_UE|FPSCR_ZE|FPSCR_XE)
#define MASKSHFT 3
+
fp_except
fpgetmask(void)
{
- u_int64_t fpscr;
+ uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
- return (((fp_except)fpscr & MASKBITS) >> MASKSHFT);
+ return (((uint32_t)fpscr & MASKBITS) >> MASKSHFT);
}
diff -r ee762d641911 -r a5c67f9be11c lib/libc/arch/powerpc/gen/fpgetround.c
--- a/lib/libc/arch/powerpc/gen/fpgetround.c Sun Apr 04 19:26:21 2004 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetround.c Sun Apr 04 19:27:19 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetround.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
+/* $NetBSD: fpgetround.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -52,10 +52,10 @@
#define ROUNDSHFT 0
fp_rnd
-fpgetround()
+fpgetround(void)
{
- u_int64_t fpscr;
+ uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
- return (((fp_rnd)fpscr & ROUNDBITS) >> ROUNDSHFT);
+ return (((uint32_t)fpscr & ROUNDBITS) >> ROUNDSHFT);
}
diff -r ee762d641911 -r a5c67f9be11c lib/libc/arch/powerpc/gen/fpgetsticky.c
--- a/lib/libc/arch/powerpc/gen/fpgetsticky.c Sun Apr 04 19:26:21 2004 +0000
+++ b/lib/libc/arch/powerpc/gen/fpgetsticky.c Sun Apr 04 19:27:19 2004 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetsticky.c,v 1.4 2004/04/02 22:55:19 matt Exp $ */
+/* $NetBSD: fpgetsticky.c,v 1.5 2004/04/04 19:27:19 matt Exp $ */
/*
* Copyright (c) 1999 The NetBSD Foundation, Inc.
@@ -54,8 +54,8 @@
fp_except
fpgetsticky(void)
{
- u_int64_t fpscr;
+ uint64_t fpscr;
__asm__ __volatile("mffs %0" : "=f"(fpscr));
- return (((fp_except)fpscr & STICKYBITS) >> STICKYSHFT);
+ return (((uint32_t)fpscr & STICKYBITS) >> STICKYSHFT);
}
Home |
Main Index |
Thread Index |
Old Index