Commit 7a74b748 by Dmitry Trifonov Committed by Eric

fix for android NDK r10e (#375)

parent 09b93ccc
...@@ -35,9 +35,9 @@ BigOFunc* FittingCurve(BigO complexity) { ...@@ -35,9 +35,9 @@ BigOFunc* FittingCurve(BigO complexity) {
case oNCubed: case oNCubed:
return [](int n) -> double { return std::pow(n, 3); }; return [](int n) -> double { return std::pow(n, 3); };
case oLogN: case oLogN:
return [](int n) { return std::log2(n); }; return [](int n) { return log2(n); };
case oNLogN: case oNLogN:
return [](int n) { return n * std::log2(n); }; return [](int n) { return n * log2(n); };
case o1: case o1:
default: default:
return [](int) { return 1.0; }; return [](int) { return 1.0; };
......
...@@ -141,7 +141,7 @@ BENCHMARK(BM_Complexity_O_N_log_N) ...@@ -141,7 +141,7 @@ BENCHMARK(BM_Complexity_O_N_log_N)
BENCHMARK(BM_Complexity_O_N_log_N) BENCHMARK(BM_Complexity_O_N_log_N)
->RangeMultiplier(2) ->RangeMultiplier(2)
->Range(1 << 10, 1 << 16) ->Range(1 << 10, 1 << 16)
->Complexity([](int n) { return n * std::log2(n); }); ->Complexity([](int n) { return n * log2(n); });
BENCHMARK(BM_Complexity_O_N_log_N) BENCHMARK(BM_Complexity_O_N_log_N)
->RangeMultiplier(2) ->RangeMultiplier(2)
->Range(1 << 10, 1 << 16) ->Range(1 << 10, 1 << 16)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment