Module Name: src
Committed By: riastradh
Date: Mon Aug 27 06:17:17 UTC 2018
Modified Files:
src/sys/external/bsd/common/include/linux: bitops.h
Log Message:
... Provide GENMASK
Author: coypu <[email protected]>
Committer: Taylor R Campbell <[email protected]>
To generate a diff of this commit:
cvs rdiff -u -r1.1 -r1.2 src/sys/external/bsd/common/include/linux/bitops.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/external/bsd/common/include/linux/bitops.h
diff -u src/sys/external/bsd/common/include/linux/bitops.h:1.1 src/sys/external/bsd/common/include/linux/bitops.h:1.2
--- src/sys/external/bsd/common/include/linux/bitops.h:1.1 Mon Aug 27 06:15:32 2018
+++ src/sys/external/bsd/common/include/linux/bitops.h Mon Aug 27 06:17:17 2018
@@ -1,4 +1,4 @@
-/* $NetBSD: bitops.h,v 1.1 2018/08/27 06:15:32 riastradh Exp $ */
+/* $NetBSD: bitops.h,v 1.2 2018/08/27 06:17:17 riastradh Exp $ */
/*-
* Copyright (c) 2013 The NetBSD Foundation, Inc.
@@ -84,6 +84,7 @@ hweight32(uint32_t n)
roundup2((n), (sizeof(unsigned long) * CHAR_BIT))
#define BIT(n) ((uintmax_t)1 << (n))
+#define GENMASK(h,l) __BITS(h,l)
static inline int
test_bit(unsigned int n, const volatile unsigned long *p)