| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
These procedures treat integers as half-open bit vectors. If an integer is positive, it is regarded as if infinite number of zeros are padded to the left. If an integer is negative, it is regarded in 2's complement form, and infinite number of 1's are padded to the left.
The API is consisntent to SLIB's "logical" module.
ash shifts n right with
-count bits.
; Note: 6 == [...00110], and ; -6 == [...11010] (ash 6 2) => 24 ;[...0011000] (ash 6 -2) => 1 ;[...0000001] (ash -6 2) => -24 ;[...1101000] (ash -6 -2) => -2 ;[...1111110] |
(not (zero? (logand n1 n2 ...)))
#t if index-th bit of integer n is 1,
#f otherwise.
| [ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |