diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-30 09:08:24 +0100 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-09-30 09:09:29 +0100 |
commit | 1dd7ce8749788a311614fada842016b8683ac6b9 (patch) | |
tree | bc2cceb10623a3b4184c00f38b8380ec6279913c /benchmarks/gem_blt.c | |
parent | d16318ade57a75455f2130c1396d100e351e1ecd (diff) |
benchmarks/gem_blt: Remove () causing integer overflow
In the middle of a line of double calculations is (int * int) and a
potential overflow.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'benchmarks/gem_blt.c')
-rw-r--r-- | benchmarks/gem_blt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/benchmarks/gem_blt.c b/benchmarks/gem_blt.c index 31b8b208..1958b1cd 100644 --- a/benchmarks/gem_blt.c +++ b/benchmarks/gem_blt.c @@ -81,7 +81,7 @@ static int baseline(uint64_t bytes, int milliseconds) free(mem); - return ceil(1e-3*milliseconds/elapsed(&start, &end) * (count * size) / bytes); + return ceil(1e-3*milliseconds/elapsed(&start, &end) * count * size / bytes); } static int gem_linear_blt(int fd, |