A set of programming macros implement bit-fields in a variable, such as an unsigned
integer structure having a bit-field definition number associated with each bit-field.
The bit-field definition numbers have a value that defines the associated bit-field
in terms of its end bits. In various embodiments, the macros extract the end bits
from the value of the structure elements to form mask and shift values with which
to manipulate the bit-fields.