sys_bitarray_xor

Function sys_bitarray_xor 

Source
pub unsafe extern "C" fn sys_bitarray_xor(
    dst: *mut sys_bitarray,
    other: *mut sys_bitarray,
    num_bits: usize,
    offset: usize,
) -> i32
Expand description

Calculates the bit-wise XOR of two bitarrays in a region. The result is stored in the first bitarray passed in (@p dst). Both bitarrays must be of the same size.

@param dst Bitarray struct @param other Bitarray struct @param num_bits Number of bits in the region, must be larger than 0 @param offset Starting bit location

@retval 0 Operation successful @retval -EINVAL Invalid argument (e.g. out-of-bounds access, mismatching bitarrays, trying to xor 0 bits, etc.)