counting matching bits / bitXnor
Yoshiki Ohshima
yoshiki at vpri.org
Mon Dec 17 18:44:27 UTC 2007
> Use a Bitmap and BitBLT. Dan put loads of stuff in there to mangle bits
Yes. There is a SqueakMap entry called BitArray that utilizes
Bitmap and BitBlt, and among others, #cardinality returns the number
of set bits.
I haven't quite understood Cees' requirement, (is it effectively to
find a substring or not?) but BitArray might help.
-- Yoshiki
More information about the Squeak-dev
mailing list
|