def pack

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

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

260# Handle pack in the SHA-256 compression implementation.
261def pack(word_a: U32, word_b: U32, word_c: U32, word_d: U32) -> U32:
262  (U32.shln((word_a .&. 255 : U32), 24n)
263    .|. U32.shln((word_b .&. 255 : U32), 16n)
264    .|. U32.shln((word_c .&. 255 : U32), 8n) .|. (word_d .&. 255) : U32)

Uses (4)

Used by (69)