
12 Numbers 12.1 Number Concepts 12.1.1 Numeric Operations 12.1.1.3 Viewing Integers as Bits and Bytes
12.1.1.3.1 Logical Operations on Integers
Logical operations require integers as arguments;
an error of type typeerror 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'scomplement notation.
The next figure shows defined names relating to
logical operations on numbers.
Defined names relating to logical operations on numbers.
ash 
booleior 
logbitp 
boole 
boolenand 
logcount 
boole1 
boolenor 
logeqv 
boole2 
booleorc1 
logior 
booleand 
booleorc2 
lognand 
booleandc1 
booleset 
lognor 
booleandc2 
boolexor 
lognot 
boolec1 
integerlength 
logorc1 
boolec2 
logand 
logorc2 
booleclr 
logandc1 
logtest 
booleeqv 
logandc2 
logxor 
