[prev in list] [next in list] [prev in thread] [next in thread] 

List:       wine-devel
Subject:    Re: [2/2] d3dx9_36: Implement and add tests for D3DXFloat16To32Array.
From:       Matteo Bruni <matteo.mystral () gmail ! com>
Date:       2011-06-29 23:33:02
Message-ID: BANLkTikSC2ijR=C_RU0wp=orW7FTcPuwmg () mail ! gmail ! com
[Download RAW message or body]

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.


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic