Bit Testing
(defvar *mask* #b1010)
(logtest flags *mask*)
True if the second or fourth bit in FLAGS is “on”
(logbitp 1 flags )
True if the second bit in FLAGS is “on”
(logcount flags)
Counts the number of bits that are “on”
Previous slide
Next slide
Back to first slide
View graphic version