3 ms·
A nice property of little endian is that you can index bits with (arr[x/8] >> (x%8)) & 1
by TazeTSchnitzel 4y ago
A nice property of little endian is that you can index bits with
(arr[x/8] >> (x%8)) & 1
- timbit42 4y agoYou think that code looks nice? You've been too deep into the code for too long.
- TazeTSchnitzel 4y agoWhy 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.