Skip to main content

word_and

Function word_and 

Source
pub fn word_and<W: BitAnd<Output = W>>(a: W, b: W) -> W
Expand description

Bitwise AND/OR/NOT — the compiled form of word_and/word_or/word_not. Distinct from the and/or keywords (logical short-circuit) so word crypto written in LOGOS (the MD5/SHA-1 round functions) is bit-exact on every tier. Word8/16/32/64 impl these operators, so they lower to a single machine and/or/not; a lane vector lowers to the AVX2 vector form.