def cm.mask
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as ModeCoreimport 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))
import bend-osdev-mode-core@0.1.0.0/mode_core.bend as ModeCoreimport 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))