2011/6/29 Misha Koshelev misha680@gmail.com:
...
else return sgn * powf(2, -14.0f) * ((float)m / 1024.0f);
...
return sgn * powf(2, (float)e - 15.0f) * (1.0f + ((float)m / 1024.0f));
I think you don't need the explicit casts here, the values should be automatically promoted to floats as the other operand is a float as well.