Re: [AD] C99 isms in test.c

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


On 2005-10-13, Evert Glebbeek <eglebbk@xxxxxxxxxx> wrote:
> Anyway, patch attached. It fixes the C99isms, corrects a small
> mistake and tries to fool clever compilers that might optimise
> out the unused result of the calculation. [...]
> 
> @@ -1432,7 +1432,7 @@
>     ct = 0;
>  
>     do {
> -      z = fixmul(x,y);
> +      z += fixmul(x,y);
>        x += 1317;
>        y += 7143;
>        ct++;

Why are these changes needed? Don't x and y change every iteration?




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