Re: [2/2] d3dx9_36: Implement and add tests for D3DXFloat16To32Array.
30 Jun
2011
30 Jun
'11
12:33 a.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.
5370
Age (days ago)
5370
Last active (days ago)
0 comments
1 participants
participants (1)
-
Matteo Bruni