6 ms·
Slightly disturbed by the article's use of the term "first bits" for describing the most significant ones. [Sure they are the leftmost ones when writing down t
by stncls 5y ago
Slightly disturbed by the article's use of the term "first bits" for describing the most significant ones.
[Sure they are the leftmost ones when writing down the number, but all CPUs are LSB-first now... Plus, I'm a loyalist to the Emperor of Lilliput :-).]
- mormegil 5y agoDunno, RFC 791 states in its Appendix B: "Whenever an octet represents a numeric quantity the left most bit in the diagram is the high order or most significant bit. That is, the bit labeled 0 is the most significant bit." which I read as "left bits", numbered from 0 (i. e. the "first bits") are those most significant.
- jtsiskin 5y agoYes but that’s network byte order. It’s pretty natural to consider (var & 0b1) the “first bit”. (especially if coming from certain HW) Really “first bit” can mean whatever you want so the phrase just shouldn’t be used
- mormegil 5y agoNo, I am pointing out the _bit_ order inside a byte, not _byte_ order. (The mentioned Appendix describes both, I am quoting the intra-byte part.)