def CapSet.inter
import bend-osdev-caps@0.1.0.0/caps.bend as Capsimport 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)}