Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Dunno, 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.


Yes 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


No, 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.)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: