On 26 April 2013 10:27, Jacek Caban <ja...@codeweavers.com> wrote:
> - round is not portable. As I mentioned you before, Wine needs to be C89
> compatible. If we need some features that are not part of C89, we need
> to be careful about that and it often requires things like configure
> checks. In case of round, replacing it with floor(x+0.5) does the trick
> pretty well.
>
But that's going to do something different for negative values.

What you actually want to use is probably lrint(), although that's C99
as well, and affected by the current rounding mode. The latter may be
what you want anyway, but would need tests.


Reply via email to