byte_aligned_bitwise_bin_op_helper

Function byte_aligned_bitwise_bin_op_helper 

Source
fn byte_aligned_bitwise_bin_op_helper<F>(
    left: &mut [u8],
    left_offset_in_bits: usize,
    right: impl AsRef<[u8]>,
    right_offset_in_bits: usize,
    len_in_bits: usize,
    op: F,
)
where F: FnMut(u64, u64) -> u64,
Expand description

Perform bitwise binary operation on byte-aligned buffers (i.e. not offsetting into a middle of a byte).

This is the optimized path for byte-aligned operations. It processes data in u64 chunks for maximum efficiency, then handles any remainder bits.

ยงArguments

  • left - The left mutable buffer (must be byte-aligned)
  • left_offset_in_bits - Starting bit offset in the left buffer (must be multiple of 8)
  • right - The right buffer as byte slice
  • right_offset_in_bits - Starting bit offset in the right buffer
  • len_in_bits - Number of bits to process
  • op - Binary operation to apply