Expand description
Bit manipulation macros.
C header: include/linux/bits.h
Functionsยง
- bit_u8
- Computes
1 << n
by performing a compile-time assertion thatn
is in bounds. - bit_u16
- Computes
1 << n
by performing a compile-time assertion thatn
is in bounds. - bit_u32
- Computes
1 << n
by performing a compile-time assertion thatn
is in bounds. - bit_u64
- Computes
1 << n
by performing a compile-time assertion thatn
is in bounds. - checked_
bit_ u8 - Computes
1 << n
ifn
is in bounds, i.e.: ifn
is smaller than the maximum number of bits supported by the type. - checked_
bit_ u16 - Computes
1 << n
ifn
is in bounds, i.e.: ifn
is smaller than the maximum number of bits supported by the type. - checked_
bit_ u32 - Computes
1 << n
ifn
is in bounds, i.e.: ifn
is smaller than the maximum number of bits supported by the type. - checked_
bit_ u64 - Computes
1 << n
ifn
is in bounds, i.e.: ifn
is smaller than the maximum number of bits supported by the type. - genmask_
checked_ u8 - Creates a contiguous bitmask for the given range by validating the range at runtime.
- genmask_
checked_ u16 - Creates a contiguous bitmask for the given range by validating the range at runtime.
- genmask_
checked_ u32 - Creates a contiguous bitmask for the given range by validating the range at runtime.
- genmask_
checked_ u64 - Creates a contiguous bitmask for the given range by validating the range at runtime.
- genmask_
u8 - Creates a compile-time contiguous bitmask for the given range by performing a compile-time assertion that the range is valid.
- genmask_
u16 - Creates a compile-time contiguous bitmask for the given range by performing a compile-time assertion that the range is valid.
- genmask_
u32 - Creates a compile-time contiguous bitmask for the given range by performing a compile-time assertion that the range is valid.
- genmask_
u64 - Creates a compile-time contiguous bitmask for the given range by performing a compile-time assertion that the range is valid.