Peter Nachtwey
Member
How does one find the least significant bit WITHOUT:
1 checking for a bit being set in each bit position.
2 looping.
3 using lookup tables.
4 using the encode instruction.
Most should not even try. I will be surprised if anyone gets this.
Hint. This works well on just about any processors that have floating point processors. That is a big hint.
Steve Kemp's question got me thinking about how I find the LSB.
1 checking for a bit being set in each bit position.
2 looping.
3 using lookup tables.
4 using the encode instruction.
Most should not even try. I will be surprised if anyone gets this.
Hint. This works well on just about any processors that have floating point processors. That is a big hint.
Steve Kemp's question got me thinking about how I find the LSB.