mirror of https://github.com/google/snappy.git
Fix a microbenchmark crash on mingw32; seemingly %lld is not universally
supported on Windows, and %I64d is recommended instead. R=csilvers DELTA=6 (5 added, 0 deleted, 1 changed) Revision created by MOE tool push_codebase. MOE_MIGRATION=1034 git-svn-id: https://snappy.googlecode.com/svn/trunk@18 03e5f5b5-db94-4691-08a0-1a8bf15f6143
This commit is contained in:
parent
98004ca9af
commit
b1dc1f643e
|
@ -159,7 +159,12 @@ void Benchmark::Run() {
|
||||||
"%.1fGB/s", bytes_per_second / (1024.0f * 1024.0f * 1024.0f));
|
"%.1fGB/s", bytes_per_second / (1024.0f * 1024.0f * 1024.0f));
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "%-18s %10lld %10lld %10d %s %s\n",
|
fprintf(stderr,
|
||||||
|
#ifdef WIN32
|
||||||
|
"%-18s %10I64d %10I64d %10d %s %s\n",
|
||||||
|
#else
|
||||||
|
"%-18s %10lld %10lld %10d %s %s\n",
|
||||||
|
#endif
|
||||||
heading.c_str(),
|
heading.c_str(),
|
||||||
static_cast<long long>(real_time_us * 1000 / num_iterations),
|
static_cast<long long>(real_time_us * 1000 / num_iterations),
|
||||||
static_cast<long long>(cpu_time_us * 1000 / num_iterations),
|
static_cast<long long>(cpu_time_us * 1000 / num_iterations),
|
||||||
|
|
Loading…
Reference in New Issue