def cm.mask

bend-osdev-mode-core@0.1.0.0 · mode_core.bend:268

import bend-osdev-mode-core@0.1.0.0/mode_core.bend as ModeCore
import Base

268# 0 for a 0 bit, all ones for a 1 bit (the low bit of b)
269def cm.mask(b: U32) -> U32:
270  U32.sub(0, U32.and(1, b))

Uses (3)

Used by (2)