title: How can I check if there is only value changed in a (bitwise?) value?
body: <p>How can I check if there is only 1 bit change between a value and another (next) value?</p>
  
  <p>the output is for example</p>
  
  <p>001</p>
  
  <p>101</p>
  
  <p>110</p>
  
  <p>in the second output there is a 0 changed into a 1</p>
  
  <p>in the third output there is a 0 changed into a 1 AND also the last 1 changed into a 0</p>
  
  <p>the program may only continue if there is only 1 change.</p>