d3dx9/tests [patch 2/5]: Speed up some tests

Rico Schüller kgbricola at web.de
Wed Sep 26 06:35:14 CDT 2012


On 26.09.2012 12:18, Nozomi Kodama wrote:
> -    FLOAT a[64], b[64], got;
> +    FLOAT a[49], b[49], got;
>       CONST FLOAT expected[] =
>       { 0.5f, 0.5f, 25.0f, 262.5f, 1428.0f, 5362.0f, 15873.0f, 39812.0f, 88400.0f, };
>
> -    for (i = 0; i < 64; i++)
> +    for (i = 0; i < 49; i++)

You may correct the size for the expected value ...

> -    for(order = 0; order < 10; order++)
> +    for(order = 0; order <= D3DXSH_MAXORDER +1 ; order++)
>       {
> -        for(i = 0; i < 100; i++)
> +        for(i = 0; i < 49; i++)
While you change the code, please fix the style to something like
for (i = 0; i < 49; i++)



More information about the wine-patches mailing list