def q8_at

bendtorch@1.3.0.0 · dtype.bend:402

import bendtorch@1.3.0.0/dtype.bend as Dtype
import Base

402# byte e of the packed words, as its integer
403def q8_at(+e: U32, +w: U32) -> F32:
404  q8_val((U32.shrn(w, U32.to_nat((8 * (e .&. 3 : U32) : U32))) .&. 255 : U32))

Uses (7)

Used by (2)