def rotr

mylsm-lsm-store@0.6.0.1 · src/hub_sha/core.bend:20

import mylsm-lsm-store@0.6.0.1/src/hub_sha/core.bend as Core
import Base

20# Handle rotr in the SHA-256 compression implementation.
21def rotr(+word: U32, +bit_shift: Nat) -> U32:
22  (U32.shrn(word, bit_shift) .|. U32.shln(word, Nat.sub(32n, bit_shift)) : U32)

Uses (6)

Used by (0)

No other definition uses this definition.