def CapSet.inter

bend-osdev-caps@0.1.0.0 · caps.bend:278

import bend-osdev-caps@0.1.0.0/caps.bend as Caps
import Base

278def CapSet.inter(a: CapSet(), b: CapSet()) -> CapSet():
279  match a b:
280    case CapSetW{al, ah} CapSetW{bl, bh}:
281      CapSetW{U32.and(al, bl), Word.and(9n, ah, bh)}

Uses (4)

Used by (14)