diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-18 12:04:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-11-18 12:05:15 +0000 |
commit | e99e643ed1f2856109426f791a7615ee122d7c42 (patch) | |
tree | faf740cbb284796d24209349b22872248467d112 /test/basic-copyarea.c | |
parent | b6924161108214b4e50c25f4168564ead4000430 (diff) |
tests: Avoid dependence on undefined C
Right-shifting by a negative value is undefined.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'test/basic-copyarea.c')
-rw-r--r-- | test/basic-copyarea.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/basic-copyarea.c b/test/basic-copyarea.c index 025b8848..8b64199d 100644 --- a/test/basic-copyarea.c +++ b/test/basic-copyarea.c @@ -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); |