Bit field macro

This would be very useful when packing/unpacking data types encoded within something like UInts. For example, the IEEE Decimal/Binary number types have multiple fields within a UInt32/64/128 word that normally require masking and shifting to pack/unpack the multi-bit fields. While this messiness is normally hidden within a Double data structure having a bit field facility would make the underlying code easier to understand and perhaps give the compiler more optimization opportunities.

2 Likes