summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2021-06-05 14:17:41 +0200
committerThomas Haller <thaller@redhat.com>2021-06-08 08:24:10 +0200
commit89a10ddf892fa595c8b78627756952d7509e01d7 (patch)
tree100f13a425da035af57c2d57f1877c3aa9d34aab
parent4d6edd841903b21b7d391cf33a2b346555466eef (diff)
downloadNetworkManager-89a10ddf892fa595c8b78627756952d7509e01d7.tar.gz
std-aux: add NM_BIT() macro
-rw-r--r--src/libnm-std-aux/nm-std-aux.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libnm-std-aux/nm-std-aux.h b/src/libnm-std-aux/nm-std-aux.h
index b153866fd8..d5cc696f82 100644
--- a/src/libnm-std-aux/nm-std-aux.h
+++ b/src/libnm-std-aux/nm-std-aux.h
@@ -81,6 +81,10 @@ typedef uint64_t _nm_bitwise nm_be64_t;
/*****************************************************************************/
+#define NM_BIT(n) (1ull << (n))
+
+/*****************************************************************************/
+
#define NM_PASTE_ARGS(identifier1, identifier2) identifier1##identifier2
#define NM_PASTE(identifier1, identifier2) NM_PASTE_ARGS(identifier1, identifier2)