Skip to content

Commit

Permalink
fix for android NDK r10e (google#375)
Browse files Browse the repository at this point in the history
  • Loading branch information
Slonegg authored and EricWF committed Apr 21, 2017
1 parent 09b93cc commit 7a74b74
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/complexity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ BigOFunc* FittingCurve(BigO complexity) {
case oNCubed:
return [](int n) -> double { return std::pow(n, 3); };
case oLogN:
return [](int n) { return std::log2(n); };
return [](int n) { return log2(n); };
case oNLogN:
return [](int n) { return n * std::log2(n); };
return [](int n) { return n * log2(n); };
case o1:
default:
return [](int) { return 1.0; };
Expand Down
2 changes: 1 addition & 1 deletion test/complexity_test.cc
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ BENCHMARK(BM_Complexity_O_N_log_N)
BENCHMARK(BM_Complexity_O_N_log_N)
->RangeMultiplier(2)
->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)
->RangeMultiplier(2)
->Range(1 << 10, 1 << 16)
Expand Down

0 comments on commit 7a74b74

Please sign in to comment.