Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/lib/libc/arch/sparc64 Avoid lint warnings
details: https://anonhg.NetBSD.org/src/rev/b87910ed6278
branches: trunk
changeset: 778142:b87910ed6278
user: martin <martin%NetBSD.org@localhost>
date: Sat Mar 17 20:48:58 2012 +0000
description:
Avoid lint warnings
diffstat:
lib/libc/arch/sparc64/gen/_lwp.c | 6 ++++--
lib/libc/arch/sparc64/softfloat/qp.c | 8 ++++----
2 files changed, 8 insertions(+), 6 deletions(-)
diffs (62 lines):
diff -r 4de4d01d744c -r b87910ed6278 lib/libc/arch/sparc64/gen/_lwp.c
--- a/lib/libc/arch/sparc64/gen/_lwp.c Sat Mar 17 20:29:59 2012 +0000
+++ b/lib/libc/arch/sparc64/gen/_lwp.c Sat Mar 17 20:48:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: _lwp.c,v 1.6 2011/02/24 04:28:43 joerg Exp $ */
+/* $NetBSD: _lwp.c,v 1.7 2012/03/17 20:48:58 martin Exp $ */
/*-
* Copyright (c) 2002 The NetBSD Foundation, Inc.
@@ -28,7 +28,7 @@
#include <sys/cdefs.h>
#if defined(LIBC_SCCS) && !defined(lint)
-__RCSID("$NetBSD: _lwp.c,v 1.6 2011/02/24 04:28:43 joerg Exp $");
+__RCSID("$NetBSD: _lwp.c,v 1.7 2012/03/17 20:48:58 martin Exp $");
#endif /* LIBC_SCCS and not lint */
#include "namespace.h"
@@ -53,6 +53,7 @@
u->uc_stack.ss_sp = stack_base;
u->uc_stack.ss_size = stack_size;
+ /*LINTED*/
sp = (ulong *)(stack_base + stack_size);
sp = (ulong *)((ulong)sp & ~0x0f);
@@ -62,6 +63,7 @@
sp[14] = (ulong)sp - 2047;
sp[15] = (ulong)_lwp_exit - 8;
+ /*LINTED*/
sp = (ulong *)((caddr_t)sp - 2047);
gr[_REG_PC] = (ulong) start;
diff -r 4de4d01d744c -r b87910ed6278 lib/libc/arch/sparc64/softfloat/qp.c
--- a/lib/libc/arch/sparc64/softfloat/qp.c Sat Mar 17 20:29:59 2012 +0000
+++ b/lib/libc/arch/sparc64/softfloat/qp.c Sat Mar 17 20:48:58 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qp.c,v 1.8 2012/03/14 17:03:10 martin Exp $ */
+/* $NetBSD: qp.c,v 1.9 2012/03/17 20:48:59 martin Exp $ */
/*-
* Copyright (c) 2002, 2003 The NetBSD Foundation, Inc.
@@ -271,15 +271,15 @@
if (a & 0x8000000000000000ULL) {
a = (a >> 1) | (a & 1);
- *c = int64_to_float128(a);
+ *c = int64_to_float128((long long)a);
*c = float128_add(*c, *c);
} else
- *c = int64_to_float128(a);
+ *c = int64_to_float128((long long)a);
}
void
_Qp_xtoq(float128 *c, long a)
{
- *c = int64_to_float128(a);
+ *c = int64_to_float128((long long)a);
}
Home |
Main Index |
Thread Index |
Old Index