Combine53

sm53_int.sail

a comparison's 2-bit combination: 0 and, 1 or, 2 xor, 3 the first alone (bool_combine), the true and false constants folded out

function Combine53(op : int, left : bool, right : bool) -> bool =
    match op { 0 => left & right, 1 => left | right, 2 => left != right, _ => left }

Used by


Made from ScarletNX's Sail at 166ad3910f80. The Sail and the encodings' file are ScarletNX's (GPL-3.0-or-later); its encodings are from Eden's maxwell.inc (GPL-2.0-or-later).