[2/2] d3dx9_36: Implement and add tests for D3DXFloat16To32Array.

Matteo Bruni matteo.mystral at gmail.com
Wed Jun 29 18:33:02 CDT 2011


2011/6/29 Misha Koshelev <misha680 at 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.



More information about the wine-devel mailing list