Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/alpha/gen Add some casts to get rid of "bitwis...
details: https://anonhg.NetBSD.org/src/rev/c1538b78ec98
branches: trunk
changeset: 778313:c1538b78ec98
user: he <he%NetBSD.org@localhost>
date: Wed Mar 21 20:07:52 2012 +0000
description:
Add some casts to get rid of "bitwise op on signed value is non-portable"
warning from lint.
diffstat:
lib/libc/arch/alpha/gen/fpgetround.c | 6 +++---
lib/libc/arch/alpha/gen/fpsetround.c | 6 +++---
2 files changed, 6 insertions(+), 6 deletions(-)
diffs (52 lines):
diff -r 720f8ec832e1 -r c1538b78ec98 lib/libc/arch/alpha/gen/fpgetround.c
--- a/lib/libc/arch/alpha/gen/fpgetround.c Wed Mar 21 20:04:57 2012 +0000
+++ b/lib/libc/arch/alpha/gen/fpgetround.c Wed Mar 21 20:07:52 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpgetround.c,v 1.10 2011/06/12 05:44:36 matt Exp $ */
+/* $NetBSD: fpgetround.c,v 1.11 2012/03/21 20:07:52 he Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpgetround.c,v 1.10 2011/06/12 05:44:36 matt Exp $");
+__RCSID("$NetBSD: fpgetround.c,v 1.11 2012/03/21 20:07:52 he Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -58,5 +58,5 @@
__asm("excb; mf_fpcr %0; excb" : "=f" (fpcrval.d));
- return ((fpcrval.u64 >> 58) & 0x3);
+ return ((fp_rnd)(fpcrval.u64 >> 58) & 0x3);
}
diff -r 720f8ec832e1 -r c1538b78ec98 lib/libc/arch/alpha/gen/fpsetround.c
--- a/lib/libc/arch/alpha/gen/fpsetround.c Wed Mar 21 20:04:57 2012 +0000
+++ b/lib/libc/arch/alpha/gen/fpsetround.c Wed Mar 21 20:07:52 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: fpsetround.c,v 1.11 2011/06/12 05:44:36 matt Exp $ */
+/* $NetBSD: fpsetround.c,v 1.12 2012/03/21 20:07:52 he Exp $ */
/*
* Copyright (c) 1995 Christopher G. Demetriou
@@ -36,7 +36,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: fpsetround.c,v 1.11 2011/06/12 05:44:36 matt Exp $");
+__RCSID("$NetBSD: fpsetround.c,v 1.12 2012/03/21 20:07:52 he Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -58,7 +58,7 @@
fp_rnd old;
__asm("excb; mf_fpcr %0; excb" : "=f" (fpcrval.d));
- old = (fpcrval.u64 >> 58) & 0x3;
+ old = (fp_rnd)(fpcrval.u64 >> 58) & 0x3;
rnd_dir ^= old;
Home |
Main Index |
Thread Index |
Old Index