xor_bits_vec
stdlib/bits/xor_bits_vec.nbv
xor_bits_vec(lhs, rhs)
xor of two equal length vectors of bits, element-wise. One multiplication per element, like xor_bits.
- Precompiles
clone!- Used by
blake3/blake3_compress,keccak/keccak_f1600,keccak/keccak_sponge_shake
Source
# xor of two equal length vectors of bits, element-wise. One multiplication
# per element, like xor_bits.
(lhs, rhs)
let p = (clone! lhs) * (clone! rhs)
lhs + rhs - (clone! p) - p