Re: RBB: Realy Big Bitvectors

From: Tel Janin Aellinsar (icarus@loomis.berkshire.net)
Date: 12/12/95


On Sat, 9 Dec 1995, Jaco van Iterson wrote:

> 
> 
> There is NO way you can have more than 8 flags in a byte
> without making restrictions about the number of flags
> that can be set at any one time!
> 
> I could pack 255 flags in to a byte but then only 1 of
> the 255 flags could be set.
> 

No, 8 could be set.  I'm assuming your 255 flags are numbered zero 
through 255, hence there are eight that could be on simultaneously;  1, 
2, 4, 8, 16, 32, 64, and 128.  But I see what you mean, and you're right.

> If we are talking about general systems for storing flags
> then any combination of flags being set or unset should be
> allowed. 8 flags per byte is the maximum then.
> 
> Jaco
> 
> 

___________________________________________________________________________
icarus@Crocker.COM                           http://www.crocker.com/~icarus
Berserker Dragon -=={UDIC}==-              Ultima Dragons, Internet Chapter
Lord Eric P. McCoy IV                                 Knights of the Cosmos
***************************************************************************



This archive was generated by hypermail 2b30 : 12/07/00 PST