def bytes.word.put

gralha-bytes@0.1.0.1 · bytes.bend:22

import gralha-bytes@0.1.0.1/bytes.bend as Bytes
import Base

22def bytes.word.put(+word: U32, +index: U32, +v: U32) -> U32:
23  +lane = bytes.lane(index)
24  (word - U32.mod(U32.div(word, lane), 256) * lane + v * lane : U32)

Uses (7)

Used by (1)