mirror of
https://github.com/X11Libre/xf86-video-intel.git
synced 2026-03-24 01:24:12 +00:00
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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user