d3dx9: CloneMesh test and improvements

Octavian Voicu octavian.voicu at gmail.com
Fri Aug 12 06:06:00 CDT 2011

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.


As far as I know C99 is not allowed. However, you can emulate round by

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.


[1] http://linux.die.net/man/3/floorf
[2] http://source.winehq.org/git/wine.git/?a=search&h=HEAD&st=grep&s=floorf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.winehq.org/pipermail/wine-devel/attachments/20110812/6fe93f2d/attachment.htm>

More information about the wine-devel mailing list