0

I have value 0b001010100 and I need position of least 1 in this value. Anyone has idea how to achieve it? I need position from the left so for the leftest 1 I want to get 6.

oneat
  • 10,778
  • 16
  • 52
  • 70
  • There are more duplicates, if you don't like the answers there. – harold May 03 '15 at 21:51
  • Here are more methods: [Position of least significant bit that is set](http://stackoverflow.com/questions/757059/position-of-least-significant-bit-that-is-set/758056) – myaut May 03 '15 at 21:53

0 Answers0