d3dx9/tests: Use ARRAY_SIZE in test_D3DXSHMultiply2().
Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Matteo Bruni <mbruni@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
c940057171
commit
4002673683
|
@ -3237,7 +3237,7 @@ static void test_D3DXSHMultiply2(void)
|
||||||
14.0f, 15.0f, 16.0f, 17.0f, 18.0f, 19.0f,
|
14.0f, 15.0f, 16.0f, 17.0f, 18.0f, 19.0f,
|
||||||
};
|
};
|
||||||
|
|
||||||
for (i = 0; i < 20; i++)
|
for (i = 0; i < ARRAY_SIZE(a); ++i)
|
||||||
{
|
{
|
||||||
a[i] = 1.0f + i / 100.0f;
|
a[i] = 1.0f + i / 100.0f;
|
||||||
b[i] = 3.0f - i / 100.0f;
|
b[i] = 3.0f - i / 100.0f;
|
||||||
|
@ -3245,7 +3245,7 @@ static void test_D3DXSHMultiply2(void)
|
||||||
}
|
}
|
||||||
|
|
||||||
D3DXSHMultiply2(c, a, b);
|
D3DXSHMultiply2(c, a, b);
|
||||||
for (i = 0; i < 20; i++)
|
for (i = 0; i < ARRAY_SIZE(expected); ++i)
|
||||||
{
|
{
|
||||||
equal = compare_float(c[i], expected[i], 2);
|
equal = compare_float(c[i], expected[i], 2);
|
||||||
ok(equal, "Expected[%u] = %.8e, received = %.8e.\n", i, expected[i], c[i]);
|
ok(equal, "Expected[%u] = %.8e, received = %.8e.\n", i, expected[i], c[i]);
|
||||||
|
|
Loading…
Reference in New Issue