Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/benchmark_register.h
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ typename std::vector<T>::iterator AddPowers(std::vector<T>* dst, T lo, T hi,
if (i > kmax / mult) break;
}

return dst->begin() + static_cast<int>(start_offset);
return dst->begin() + start_offset;
}

template <typename T>
Expand Down
8 changes: 6 additions & 2 deletions src/complexity.cc
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ BigOFunc* FittingCurve(BigO complexity) {
case oN:
return [](IterationCount n) -> double { return static_cast<double>(n); };
case oNSquared:
return [](IterationCount n) -> double { return std::pow(n, 2); };
return [](IterationCount n) -> double {
return std::pow(static_cast<double>(n), 2);
};
case oNCubed:
return [](IterationCount n) -> double { return std::pow(n, 3); };
return [](IterationCount n) -> double {
return std::pow(static_cast<double>(n), 3);
};
case oLogN:
return [](IterationCount n) -> double {
return std::log2(static_cast<double>(n));
Expand Down