Module logic

Source

FunctionsΒ§

bit_and
bit_xor
bitwise_op πŸ”’
Performs a bitwise operation on two field elements by treating them as byte arrays.
mask_to_le_bytes πŸ”’
mask_vector_le πŸ”’
Mask a byte array in-place to only keep the lowest num_bits
try_bitwise_u128 πŸ”’
Attempt to perform a bitwise operation using native u128 arithmetic. Returns None if num_bits > 128 or either operand doesn’t fit in a u128.