Skip to main content

Module utils

Module utils 

Expand description

Contains various utility functions needed by other parts of libLISA.

Modules§

bitmap
Memory-efficient implementations of 1D bitmaps.

Structs§

MinimumCoveringSet
A brute-force minimum covering set-finder.
Symmetric2DMatrix
A matrix of boolean values, where matrix[x, y] == matrix[y, x]
Timeout
A timeout-checker.

Enums§

EitherIter
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 n bits are set.
bitmask_u128
Returns a bitmask where the lowest n bits are set.
deposit_bits_u128
Performs the x86 PDEP operation.
sign_extend
Extends an n-bit number in v to an i128.
sign_extend_u64
Extends an n-bit number in v to an i64.
switch_endianness_u64
Reverses the ordering of the lowest ceil(num_bits / 8) in val.
switch_endianness_u128
Reverses the ordering of the lowest ceil(num_bits / 8) in val.