Re: Bitfields, yet again...

From: Edward Almasy (almasy@axis.com)
Date: 11/27/95


Pink Floyd writes:
> Well, there was one limit on bitfields that I was not aware of that has
> helped me decide about changing to bitfields.  They can not cross 
> integer boundaries!  That is, I can only have 32 fields in any bitfield
> structure.  I thought it was unlimited, which would have been the
> overwhelming reason to switch to them.  I guess I'll stick with bitvectors.
> Too bad, though, that could've been an excellent feature of bitfields.

Whoa.  Bitfields not being able to cross integer boundaries means that
you can't have a single bitfield that contains more bits than an int.  I
don't think that there is any intrinsic limit to the number of bitfields
you can have in a structure.


 \_\_\_     _/ \_\_\_  axis data: specializing in online system setup & design
 \_  \_     _/ \_  \_    Edward Almasy                       almasy@axis.com  
 \_\_\_     _/ \_\_\_    President: Axis Data       Proprietor: NineJackNine
     \_ _/  _/     \_    608-256-5732 (voice)            608-256-5697 (data)
 \_\_\_ _/_/_/ \_\_\_  9jack9: on the bleeding edges of culture and technology



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