How do I eliminate conditional from code?
<p>How do I eliminate the ternary operator from the code below? I'm looking for something using only integer operators (shifts, additions, etc).</p>

<pre><code>a = (a &lt; 0) ? (-a * 2) - 1 : (a * 2)
</code></pre>
