def cm.mask

bend-osdev-cipher-modes@0.1.0.0 · cipher_modes.bend:257

import bend-osdev-cipher-modes@0.1.0.0/cipher_modes.bend as CipherModes
import Base

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

Uses (3)

Used by (4)