Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
Veedrac
on May 11, 2018
|
parent
|
context
|
favorite
| on:
Low Level Bit Hacks You Absolutely Must Know
No, that unsets bit #0, not the lowest set bit in x.
Aka. that brings 01101₂→01100₂ correctly, but 01100₂→01100₂ instead of 01100₂→01000₂.
juliangoldsmith
on May 11, 2018
[–]
Ah, I completely misunderstood what the author was doing there.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
Aka. that brings 01101₂→01100₂ correctly, but 01100₂→01100₂ instead of 01100₂→01000₂.