def CapSet.union

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

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

273def CapSet.union(a: CapSet(), b: CapSet()) -> CapSet():
274  match a b:
275    case CapSetW{al, ah} CapSetW{bl, bh}:
276      CapSetW{U32.or(al, bl), Word.or(9n, ah, bh)}

Uses (4)

Used by (30)