title: converting from signed int to unsigned int without casting
body: <pre><code>int isNegative(int x) {
    return ((unsigned) x)&gt;&gt; 31;
  }
  </code></pre>
  
  <p>I'm writing a function that takes 32 bits and returns 1 if x&lt;0, and 0 otherwise. How do I convert a signed int to an unsigned int without casting.</p>