aboutsummaryrefslogtreecommitdiff
path: root/quantum/util.h
diff options
context:
space:
mode:
authorStefan Kerkmann <karlk90@pm.me>2024-10-12 18:48:00 +0200
committerGitHub <noreply@github.com>2024-10-12 18:48:00 +0200
commit5478051d7470efb32783b1c4080a2c3f24ce3c24 (patch)
tree81dfe3ba5b08ec29edf3156b109cff453be23c65 /quantum/util.h
parent6fa11bf21913b5ccb531acc3c2baec963f4d384a (diff)
[Core] quantum: util: add bit and bitmask helpers (#24229)
quantum: util: add bit and bitmask helpers These helpers are handy and can prevent off-by-one errors when working with registers and general low level bit manipulation tasks. The macros themself are inspired by the bits.h macros from the linux kernel source code. Signed-off-by: Stefan Kerkmann <karlk90@pm.me> Co-authored-by: Pascal Getreuer <50221757+getreuer@users.noreply.github.com>
Diffstat (limited to 'quantum/util.h')
-rw-r--r--quantum/util.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/quantum/util.h b/quantum/util.h
index 94d9f22317..61ec7ac153 100644
--- a/quantum/util.h
+++ b/quantum/util.h
@@ -4,6 +4,7 @@
#pragma once
+#include "bits.h"
#include "bitwise.h"
// convert to string