Module utils
Expand description
Contains various utility functions needed by other parts of libLISA.
Modules§
- bitmap
- Memory-efficient implementations of 1D bitmaps.
Structs§
- Minimum
Covering Set - A brute-force minimum covering set-finder.
- Symmetric2D
Matrix - A matrix of boolean values, where matrix[x, y] == matrix[y, x]
- Timeout
- A timeout-checker.
Enums§
- Either
Iter - An iterator that can be one of two types.
Traits§
- MapRotated
- Convenience trait that rotates elements in a slice, and maps them to a new value.
Functions§
- bitmask_
u64 - Returns a bitmask where the lowest
nbits are set. - bitmask_
u128 - Returns a bitmask where the lowest
nbits are set. - deposit_
bits_ u128 - Performs the x86 PDEP operation.
- sign_
extend - Extends an
n-bit number invto ani128. - sign_
extend_ u64 - Extends an
n-bit number invto ani64. - switch_
endianness_ u64 - Reverses the ordering of the lowest
ceil(num_bits / 8)inval. - switch_
endianness_ u128 - Reverses the ordering of the lowest
ceil(num_bits / 8)inval.