Module utils

Source
Expand description

Utilities

Functionsยง

check_dimension_overflow ๐Ÿ”’
Checks if the provided dimensions would cause an overflow.
clamp ๐Ÿ”’
expand_bits ๐Ÿ”’
Expand a buffer of packed 1, 2, or 4 bits integers into u8โ€™s. Assumes that every row_size entries there are padding bits up to the next byte boundary.
expand_packed ๐Ÿ”’
vec_copy_to_u8 ๐Ÿ”’