DescriptionMake class BitField able to use 32 bits of a uint32.
Although algorithmically correct, the compiler would not allow to instantiate
a BitField that uses all 32 bits without warnings about a too large shift
count. As a consequence we were limited to 31 bit values when using BitField.
This happened when instantiating a bitfield BitField<T, shift, size> with
[shift=0, size=32] or [shift=31, size=1] or more general any
[shift=X, size=32-X]
As side-effect of the new implementation the compiler now warns if we ever
try instantiating a bitfield with size 0.
Committed: http://code.google.com/p/v8/source/detail?r=3910
Patch Set 1 #Patch Set 2 : '' #
Total comments: 14
Patch Set 3 : '' #
Messages
Total messages: 3 (0 generated)
|