CLCS

Logical Operations on Integers

Logical operations require integers as arguments; an error of type type-error should be signaled if an argument is supplied that is not an integer. Integer arguments to logical operations are treated as if they were represented in two’s-complement notation.

Figure 12–5 shows defined names relating to logical operations on numbers.

ashboole-iorlogbitp
booleboole-nandlogcount
boole-1boole-norlogeqv
boole-2boole-orc1logior
boole-andboole-orc2lognand
boole-andc1boole-setlognor
boole-andc2boole-xorlognot
boole-c1integer-lengthlogorc1
boole-c2logandlogorc2
boole-clrlogandc1logtest
boole-eqvlogandc2logxor
Figure 12–5: Defined names relating to logical operations on numbers.