Although bit fields often work nicely, the bit fields in nn::Result had the order of accessed bits swapped, compiler's target endianness affects the order of what bits are accessed in struct bitfields.
It was proper for little endian targets, but not big endian.
Using bit shifts instead, to also allow general portability.
Although bit fields often work nicely, the bit fields in nn::Result had the order of accessed bits swapped, compiler's target endianness affects the order of what bits are accessed in struct bitfields. It was proper for little endian targets, but not big endian. Using bit shifts instead, to also allow general portability.