Expand description
Bit manipulation macros.
C header: include/linux/bits.h
Functionsยง
- bit_u8
- Computes 1 << nby performing a compile-time assertion thatnis in bounds.
- bit_u16
- Computes 1 << nby performing a compile-time assertion thatnis in bounds.
- bit_u32
- Computes 1 << nby performing a compile-time assertion thatnis in bounds.
- bit_u64
- Computes 1 << nby performing a compile-time assertion thatnis in bounds.
- checked_bit_ u8 
- Computes 1 << nifnis in bounds, i.e.: ifnis smaller than the maximum number of bits supported by the type.
- checked_bit_ u16 
- Computes 1 << nifnis in bounds, i.e.: ifnis smaller than the maximum number of bits supported by the type.
- checked_bit_ u32 
- Computes 1 << nifnis in bounds, i.e.: ifnis smaller than the maximum number of bits supported by the type.
- checked_bit_ u64 
- Computes 1 << nifnis in bounds, i.e.: ifnis 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.