d3dx9: CloneMesh test and improvements

Michael Mc Donnell michael at mcdonnell.dk
Fri Aug 12 06:11:12 CDT 2011


On Fri, Aug 12, 2011 at 1:06 PM, Octavian Voicu
<octavian.voicu at gmail.com> wrote:
> On Fri, Aug 12, 2011 at 12:59 PM, Michael Mc Donnell <michael at mcdonnell.dk>
> wrote:
>>
>> Is it ok to use roundf and rintf? They're both C99 functions.
>
> Hello,
> As far as I know C99 is not allowed. However, you can emulate round by
> doing:
> floorf(val + 0.5f)
> According to [1] floorf is C99 (only floor is C89), but including math.h in
> wine actually gives you msvcrt's math.h which is a bit different and doesn't
> even have round nor rint. Gdiplus uses floorf [2] so it should be OK.
> Octavian
> [1] http://linux.die.net/man/3/floorf
> [2] http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=grep&s=floorf

Thanks Octavian. I was already using floorf(val + 0.5f), so I'll keep
using that.



More information about the wine-devel mailing list