Skip to content
Commit 8eff4b60 authored by TOKITA Hiroshi's avatar TOKITA Hiroshi Committed by Carles Cufí
Browse files

include: sys: util_macro: add IS_BIT_MASK()/IS_SHIFTED_BIT_MASK()



Add IS_BIT_MASK() macro for determining whether a value is set bits
continuously from the LSB.
This macro is not dependent on bit-width and works in contrast to
BIT_MASK() and BIT64_MASK().
IS_SHIFTED_BIT_MASK() is a version of IS_BIT_MASK() that allows setting
the start bit of continuous bits.

Signed-off-by: default avatarTOKITA Hiroshi <tokita.hiroshi@fujitsu.com>
parent de313d74
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment