- any-bit-set? test-bits iprocedure
- every-bit-set? test-bits iprocedure
Determines if any/all of the bits set in bitstring test-bits are set in bitstring i. I.e., returns (not (zero? (bitwise-andtest-bits i))) and (= test-bits (bitwise-and test-bits i))) respectively.
(any-bit-set? 3 6) => #t (any-bit-set? 3 12) => #f (every-bit-set? 4 6) => #t (every-bit-set? 7 6) => #f