Most efficient way to convert uint8 to float of range 0-1
<p>Converting a uint8 value to a normalized float is pretty straight forward:</p>

<pre><code>uint8 i = 0xAF;
float f = float(i)/float(0xFF);
</code></pre>

<p>But this feels more expensive than it should be... </p>

<p>Is there a way of making this conversion that's more efficient?  I ask mostly out of curiosity, but also because my 3D program makes this conversion a significant number of times.</p>

<p>Readability isn't important, and the uint8 would always span the entire range </p>

<p><code>0 == 0.f</code> and <code>255 == 1.f</code></p>