def word.contains

bend-kit-netip@0.1.0.0 · netip.bend:411

import bend-kit-netip@0.1.0.0/netip.bend as Netip
import Base

411def word.contains(+a: U32, +b: U32, bits: U32) -> Bool:
412  +m = mask(bits)
413  U32.is_eq((a .&. m : U32), (b .&. m : U32))

Uses (5)

Used by (1)