1
0
Fork 0

[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>
This commit is contained in:
Stefan Kerkmann 2024-10-12 18:48:00 +02:00 committed by GitHub
parent 6fa11bf219
commit 5478051d74
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 34 additions and 0 deletions

View file

@ -4,6 +4,7 @@
#pragma once
#include "bits.h"
#include "bitwise.h"
// convert to string