title: C++ bitwise operation reverse
body: <p>I got the following operation: </p>
  
  <pre><code>uint8_t input = 10;
  uint8_t output = ((0x190 - (input * 8)) &amp; 0xFF);
  
  // newInput should be 10 again, but is 255
  uint8_t newInput = (((output * 8) + 0x190) | 0xFF);
  </code></pre>
  
  <p>How can I correct the operation setting <code>newInput</code> so that it will result back in 10?</p>