Re:Low Level Bit Hacks You Absolutely Must Know
by tptacek on Tuesday June 30, 2009 @04:37PM
(#681535)
When, given a bit-vector representation of 8 devices, would I want to do something with the "right-most" of those devices?
[ Parent
| on HN ]
Re:Low Level Bit Hacks You Absolutely Must Know
by pkrumins on Tuesday June 30, 2009 @04:42PM
(#681541)
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.