From: Konstantinos Margaritis Date: Wed, 24 Apr 2024 09:39:17 +0000 (+0300) Subject: Merge pull request #255 from isildur-g/wip-isildur-g X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5363b7c8c77ae39c0c55ee62672931014cf6eda8;p=thirdparty%2Fvectorscan.git Merge pull request #255 from isildur-g/wip-isildur-g addressing some cppcheck warnings. --- 5363b7c8c77ae39c0c55ee62672931014cf6eda8 diff --cc benchmarks/benchmarks.cpp index b6106ed4,d8b77992..92806321 --- a/benchmarks/benchmarks.cpp +++ b/benchmarks/benchmarks.cpp @@@ -113,11 -111,9 +113,11 @@@ static void run_benchmarks(int size, in const u8 *res = func(bench); } auto end = std::chrono::steady_clock::now(); - total_sec += std::chrono::duration_cast(end - start).count(); + total_sec += + std::chrono::duration_cast(end - start) + .count(); /*calculate transferred size*/ - total_size = size * loops; + total_size = (u64a)size * (u64a)loops; /*calculate average time*/ avg_time = total_sec / loops; /*convert microseconds to seconds*/