Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
tptacek
on June 30, 2009
|
parent
|
context
|
favorite
| on:
Low Level Bit Hacks You Absolutely Must Know
When, given a bit-vector representation of 8 devices, would I want to do something with the "right-most" of those devices?
pkrumins
on June 30, 2009
[–]
for example, those 8 devices were 8 LEDs, some of them on, and you'd want to turn the rightmost led off. :)
edit: i'll look into more serious applications when i write that article on bit trick applications.
tptacek
on July 1, 2009
|
parent
[–]
Ok, lights are a good example.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: