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/c43e9d051548
branches:  trunk
changeset: 365714:c43e9d051548
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 2922fe2a6aad -r c43e9d051548 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