Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/common/include/linux ... Provide GENMASK



details:   https://anonhg.NetBSD.org/src/rev/9f5daab7af1f
branches:  trunk
changeset: 364182:9f5daab7af1f
user:      riastradh <riastradh%NetBSD.org@localhost>
date:      Mon Aug 27 06:17:17 2018 +0000

description:
... Provide GENMASK


Author: coypu <coypu%sdf.org@localhost>
Committer: Taylor R Campbell <riastradh%NetBSD.org@localhost>

diffstat:

 sys/external/bsd/common/include/linux/bitops.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 58fe95a99f8f -r 9f5daab7af1f sys/external/bsd/common/include/linux/bitops.h
--- a/sys/external/bsd/common/include/linux/bitops.h    Mon Aug 27 06:17:05 2018 +0000
+++ b/sys/external/bsd/common/include/linux/bitops.h    Mon Aug 27 06:17:17 2018 +0000
@@ -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 @@
        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)



Home | Main Index | Thread Index | Old Index