News for hackers. Stuff that matters.
Re:Ask HN: Why is the byte order little-endian, but the bit ... by colanderman on Tuesday July 06, 2021 @03:39PM (#27753281)
If anything, bit order on most CPUs can be considered "little endian", because that's how CPU documentation numbers the bits (0, the first, being the lowest order). Not to mention bit-field insert/extract opcodes, like BEXTR on x86 [1] or UBFX on ARM [2].

As another commenter points out, IBM is one of the few to reverse this and number bits in a big-endian order on their big-endian processors, with 0 being the most significant.

[1] https://www.felixcloutier.com/x86/bextr

[2] https://www.keil.com/support/man/docs/armasm/armasm_dom13612...

Re:Ask HN: Why is the byte order little-endian, but the bit ... by Gibbon1 on Wednesday July 07, 2021 @04:50PM (#27765596)
A long time ago TI's bit order was reversed from everyone elses. I remember because I wired one of their chips the way you would expect and didn't work right.

My opinion big endian should be intentionally unsupported.

Re:Ask HN: Why is the byte order little-endian, but the bit ... by sigjuice on Thursday July 08, 2021 @03:18PM (#27776522)
There are other possibilities for numbering bits. I have seen PowerPC documentation where 32-bit registers have bits numbered from 32 to 63, with 32 being the most significant.