Re: [AD] 4.9.20

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 2010-05-25, Elias Pschernig <elias.pschernig@xxxxxxxxxx> wrote:
> On Tue, May 25, 2010 at 3:04 PM, Peter Wang <novalazy@xxxxxxxxxx> wrote:
> 
> >
> >
> > Actually, round() is C99.
> >
> >
> Does that mean we cannot use it? Could just use floor(x + 0.5) then.

Yes, MSVC doesn't have it.

> Using (int)(x + 0.5) is a problem around the zero crossing and I'm never
> sure if the extra check for negative x or using round/floor is better then.

I won't be making the release tonight as it's too late.

Peter




Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/