News for hackers. Stuff that matters.
Re:On Endianness (2021) by TazeTSchnitzel on Monday May 23, 2022 @07:03PM (#31485926)
A nice property of little endian is that you can index bits with

  (arr[x/8] >> (x%8)) & 1
Re:On Endianness (2021) by timbit42 on Monday May 23, 2022 @08:35PM (#31486618)
You think that code looks nice? You've been too deep into the code for too long.
Re:On Endianness (2021) by TazeTSchnitzel on Thursday May 26, 2022 @04:02AM (#31515867)
Why the mean comment? It's as nice as bit-indexing code can look. If you have to reverse the ordering of one of the indices it looks worse.