Expand description
The bitwise utils.
Traits§
- Unsigned
- An unsigned trait that used by the utils.
Functions§
- align_
down - Align down the given value with the given align.
- align_
up - Align up the given value with the given align.
- assert_
aligned - Assert that the given value is aligned with the given align.
- assert_
pow2 - Assert that the given value is a power of 2.
- debug_
assert_ aligned - Debug assert that the given value is aligned with the given align.
- debug_
assert_ pow2 - Debug assert that the given value is a power of 2.
- is_
aligned - Check if the given value is aligned with the given align.
- is_pow2
- Check if the given value is a power of 2.