Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/mips/mips Remove unused declaration of __BIT and __...
details: https://anonhg.NetBSD.org/src/rev/32fa0ae8eb86
branches: trunk
changeset: 450433:32fa0ae8eb86
user: maya <maya%NetBSD.org@localhost>
date: Sat Apr 13 21:39:46 2019 +0000
description:
Remove unused declaration of __BIT and __BITS
it's defined already, tested with #error.
diffstat:
sys/arch/mips/mips/cache_octeon.c | 14 ++------------
1 files changed, 2 insertions(+), 12 deletions(-)
diffs (30 lines):
diff -r f8252423b518 -r 32fa0ae8eb86 sys/arch/mips/mips/cache_octeon.c
--- a/sys/arch/mips/mips/cache_octeon.c Sat Apr 13 19:29:27 2019 +0000
+++ b/sys/arch/mips/mips/cache_octeon.c Sat Apr 13 21:39:46 2019 +0000
@@ -1,7 +1,7 @@
-/* $NetBSD: cache_octeon.c,v 1.2 2016/07/11 16:15:36 matt Exp $ */
+/* $NetBSD: cache_octeon.c,v 1.3 2019/04/13 21:39:46 maya Exp $ */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: cache_octeon.c,v 1.2 2016/07/11 16:15:36 matt Exp $");
+__KERNEL_RCSID(0, "$NetBSD: cache_octeon.c,v 1.3 2019/04/13 21:39:46 maya Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -98,16 +98,6 @@
#ifdef OCTEON_ICACHE_DEBUG
-#ifndef __BIT
-/* __BIT(n): nth bit, where __BIT(0) == 0x1. */
-#define __BIT(__n) \
- (((__n) >= NBBY * sizeof(uintmax_t)) ? 0 : ((uintmax_t)1 << (__n)))
-
-/* __BITS(m, n): bits m through n, m < n. */
-#define __BITS(__m, __n) \
- ((__BIT(MAX((__m), (__n)) + 1) - 1) ^ (__BIT(MIN((__m), (__n))) - 1))
-#endif
-
/* icache: 16KB, 2ways */
#define OCTEON_ICACHE_VA_WAY(_va) (((_va) & __BITS(14, 13)) >> 13)
Home |
Main Index |
Thread Index |
Old Index