def adler.word

bend-kit-hash@0.3.0.2 · hash.bend:439

import bend-kit-hash@0.3.0.2/hash.bend as Hash
import Base

439def adler.word(h0: U32, +w: U32) -> U32:
440  +h = h0
441  +a0 = ((h .&. 65535) + (w .&. 255) : U32)
442  +a1 = (a0 + ((w >> 8n) .&. 255) : U32)
443  +a2 = (a1 + ((w >> 16n) .&. 255) : U32)
444  +a3 = (a2 + (w >> 24n) : U32)
445  adler.of(a3, ((h >> 16n) + a0 + a1 + a2 + a3 : U32))

Uses (5)

Used by (1)