Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
polynomial
on Dec 13, 2022
|
parent
|
context
|
favorite
| on:
A neat XOR trick
I am wondering why the bit masks are Big (not Little) Endian? I'm sure there's a reason the example is done that way, I just don't know what it is.
mkeeter
on Dec 13, 2022
[–]
I wanted to put the 1 visually close to the equal sign, so you didn't have to scan all the way to the end of 0000000000000000000000000000000 to find it. Perhaps this is misleading, because the code places the set bit at the LSB!
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: