ddraw/tests: Don't use log2f to avoid mingwex dependency.
Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
4a91eb3626
commit
e7a2e45c70
|
@ -8205,7 +8205,7 @@ static void test_color_fill(void)
|
|||
float f, g;
|
||||
|
||||
expected = tests[i].result & mask;
|
||||
f = ceilf(log2f(expected + 1.0f));
|
||||
f = ceilf(logf(expected + 1.0f) / logf(2.0f));
|
||||
g = (f + 1.0f) / 2.0f;
|
||||
g -= (int)g;
|
||||
expected_broken = (expected / exp2f(f) - g) * 256;
|
||||
|
|
|
@ -8953,7 +8953,7 @@ static void test_color_fill(void)
|
|||
float f, g;
|
||||
|
||||
expected = tests[i].result & mask;
|
||||
f = ceilf(log2f(expected + 1.0f));
|
||||
f = ceilf(logf(expected + 1.0f) / logf(2.0f));
|
||||
g = (f + 1.0f) / 2.0f;
|
||||
g -= (int)g;
|
||||
expected_broken = (expected / exp2f(f) - g) * 256;
|
||||
|
|
|
@ -10601,7 +10601,7 @@ static void test_color_fill(void)
|
|||
float f, g;
|
||||
|
||||
expected = tests[i].result & U3(z_fmt).dwZBitMask;
|
||||
f = ceilf(log2f(expected + 1.0f));
|
||||
f = ceilf(logf(expected + 1.0f) / logf(2.0f));
|
||||
g = (f + 1.0f) / 2.0f;
|
||||
g -= (int)g;
|
||||
expected_broken = (expected / exp2f(f) - g) * 256;
|
||||
|
|
|
@ -10575,7 +10575,7 @@ static void test_color_fill(void)
|
|||
float f, g;
|
||||
|
||||
expected = tests[i].result & U3(z_fmt).dwZBitMask;
|
||||
f = ceilf(log2f(expected + 1.0f));
|
||||
f = ceilf(logf(expected + 1.0f) / logf(2.0f));
|
||||
g = (f + 1.0f) / 2.0f;
|
||||
g -= (int)g;
|
||||
expected_broken = (expected / exp2f(f) - g) * 256;
|
||||
|
|
Loading…
Reference in New Issue