AArch64: Add fixes to bionic/tests
This patch adds minor fixes to the bionic unit tests. Change-Id: Ie10f33c631ed6c10987923d678711d22931ddb05 Signed-off-by: Serban Constantinescu <serban.constantinescu@arm.com>
This commit is contained in:

committed by
Elliott Hughes

parent
4e78ca63b8
commit
282e232e2a
@@ -27,6 +27,7 @@ benchmark_c_flags = \
|
||||
-Wall -Wextra \
|
||||
-Werror \
|
||||
-fno-builtin \
|
||||
-std=gnu++11 \
|
||||
|
||||
benchmark_src_files = \
|
||||
benchmark_main.cpp \
|
||||
|
@@ -23,6 +23,8 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
|
||||
#include <inttypes.h>
|
||||
|
||||
static int64_t gBytesProcessed;
|
||||
static int64_t gBenchmarkTotalTimeNs;
|
||||
static int64_t gBenchmarkStartTimeNs;
|
||||
@@ -162,8 +164,8 @@ void Benchmark::RunWithArg(int arg) {
|
||||
snprintf(full_name, sizeof(full_name), "%s", name_);
|
||||
}
|
||||
|
||||
printf("%-20s %10lld %10lld%s\n", full_name,
|
||||
static_cast<int64_t>(iterations), gBenchmarkTotalTimeNs/iterations, throughput);
|
||||
printf("%-20s %10d %10" PRId64 "%s\n", full_name,
|
||||
iterations, gBenchmarkTotalTimeNs/iterations, throughput);
|
||||
fflush(stdout);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user