Get the latest tech news
Common Lisp Names All Sixteen Binary Logic Gates
he Language, 2nd Edition The logical operations in this section require integers as arguments; it is an error to supply a non-integer as an argument. The functions all treat integers as if they were represented in two's-complement notation.
Suppose that some (possibly countably infinite) universe of discourse for sets is mapped into the non-negative integers. The functions logior, logand, and logxor defined below then compute the union, intersection, and symmetric difference operations on sets represented in this way. [Constant] boole-clr boole-set boole-1 boole-2 boole-c1 boole-c2 boole-and boole-ior boole-xor boole-eqv boole-nand boole-nor boole-andc1 boole-andc2 boole-orc1 boole-orc2
Or read this on Hacker News