Re: [2/2] d3dx9_36: Implement and add tests for D3DXFloat16To32Array.
29 Jun
2011
29 Jun
'11
6:33 p.m.
2011/6/29 Misha Koshelev <misha680(a)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.
5281
Age (days ago)
5281
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni