def bytes.word.put
import gralha-bytes@0.1.0.1/bytes.bend as Bytesimport 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)
import gralha-bytes@0.1.0.1/bytes.bend as Bytesimport 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)