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/render-composite-solid-mask.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/render-composite-solid-mask.c')
-rw-r--r-- | test/render-composite-solid-mask.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/test/render-composite-solid-mask.c b/test/render-composite-solid-mask.c index b86512c8..925df3ca 100644 --- a/test/render-composite-solid-mask.c +++ b/test/render-composite-solid-mask.c @@ -107,13 +107,9 @@ 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), sets = SETS(i); enum target t; - if (sets < 2) - sets = 2; - for (t = TARGET_FIRST; t <= TARGET_LAST; t++) ref_tests(&test, reps, sets, t); } |