Reading bits in far too many ways

It turns out that MSB-first and LSB-first packing conventions both have advantages and disadvantages, and it’s much more useful to think of them as tools with different areas of application than it is to designate one as the “right way” and the other as the “wrong way”. - The ryg blog part 1 / 2 / 3

int32_t a = 0x01234567

caption

see also

Written on September 30, 2018, Last update on February 16, 2023
bits c++ blog network