def gfm.mask

bend-osdev-gf@0.1.1.0 · gfm.bend:47

import bend-osdev-gf@0.1.1.0/gfm.bend as Gfm
import Base

47# all ones if the low bit of b is set, else 0
48def gfm.mask(b: U32) -> U32:
49  U32.sub(0, U32.and(b, 1))

Uses (3)

Used by (3)