def word_op

bend-collections@1.0.0.0 · src/containers/bitset.bend:84

import bend-collections@1.0.0.0/src/containers/bitset.bend as Bitset
import Base

84def word_op(k: WordOp, a: U32, b: U32) -> U32:
85  match k:
86    case KOr{}:
87      U32.or(a, b)
88    case KAnd{}:
89      U32.and(a, b)
90    case KDiff{}:
91      U32.and(a, U32.not(b))
92    case KXor{}:
93      U32.xor(a, b)

Uses (6)

Used by (1)