def ob_or

gralha-byte-words@0.1.0.0 · words.bend:279

import gralha-byte-words@0.1.0.0/words.bend as Words
import Base

279def ob_or(r: Array<U32> & U32, +cap: U32, +pos: U32, +b: U32) -> Sink:
280  (a, w) = r
281  Sink{Array.set(U32, a, (pos >> 2n : U32), (w .|. U32.shln(b, U32.to_nat(((pos .&. 3) << 3n : U32))) : U32)), cap, (pos + 1 : U32)}

Uses (12)

Used by (1)