tests: Avoid dependence on undefined C

Right-shifting by a negative value is undefined.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson
2013-11-18 12:04:29 +00:00
parent b692416110
commit e99e643ed1
19 changed files with 24 additions and 74 deletions

View File

@@ -282,13 +282,10 @@ int main(int argc, char **argv)
test_init(&test, argc, argv);
for (i = 0; i <= DEFAULT_ITERATIONS; i++) {
int reps = 1 << i;
int sets = 1 << (12 - i);
int reps = REPS(i);
int sets = SETS(i);
enum target t;
if (sets < 2)
sets = 2;
for (t = TARGET_FIRST; t <= TARGET_LAST; t++) {
pixel_tests(&test, reps, sets, t);
area_tests(&test, reps, sets, t);