def tf.ror4

bend-osdev-legacy-ciphers@0.1.0.0 · twofish.bend:42

import bend-osdev-legacy-ciphers@0.1.0.0/twofish.bend as Twofish
import Base

42# a 4-bit value rotated right by one bit
43def tf.ror4(+x: U32) -> U32:
44  U32.and(15, U32.or(U32.shr(x), U32.shln(x, 3n)))

Uses (5)

Used by (1)