Thanks for the replies. Which kind of type should bitstring be in order
to work with standard bit operators?
marcello
On Tue, 2003-07-08 at 12:45, Russell Standish wrote:
If the bitstrings fit into the system wordsize (32 bits on average
PCs), then you can use the standard bit manipulation operators of C:
x|=1<<i - sets the ith bit of x
(x&1<<i)!=0 - returns the ith bit of 0
If you have more bits than the wordsize, then you'll need to concoct a
BitSet object to do your work. C++ has a number of these - I'm not so
familiar with what's available for Obj C.
Cheers