fixed32 or fixed64 would be probably better. uint32 is encoded invariable length which would make bitfields typically larger than
necessary.
this is why I said 'typically' :) bitfields typically have a random
On Fri, May 8, 2009 at 2:06 PM, Kenton Varda <ken...@google.com> wrote:
>
>
> On Fri, May 8, 2009 at 9:03 AM, Henner Zeller <h.ze...@acm.org> wrote:
>>
>> fixed32 or fixed64 would be probably better. uint32 is encoded in
>> variable length which would make bitfields typically larger than
>> necessary.
>
> Depends. If you are only using the first few (low-order) bits, then uint32
> is probably better since it will use fewer bytes. But, yes, if you use all
> 32 bits then fixed32 is better.
distribution of bits.