Index Mathematics Conjectures nbv lettuce Widgets

rotl32_bits

stdlib/bits/rotl32_bits.nbv

rotl32_bits(words, static r)

Rotate each 32-bit word of a vector of little-endian bits left by r, as a slice of the doubled word

Calls
slice
Precompiles
clone!, concat!, div_exact!, len!, loop_flat_map!
Used by
blake3/blake3_g, chacha/chacha_quarter_round

Source

# Rotate each 32-bit word of a vector of little-endian bits left by `r`, as a
# slice of the doubled word
(words, static r)

loop_flat_map! (div_exact! (len! words), 32), w {
  slice((concat! slice((clone! words), 32 * w, 32), slice((clone! words), 32 * w, 32)), 32 - r, 32)
}