fix sqrt
This commit is contained in:
parent
825c90fdb4
commit
ed193c4fad
@ -65,7 +65,7 @@ auto main(int argc, char *argv[]) -> int {
|
|||||||
|
|
||||||
|
|
||||||
const int threads = std::thread::hardware_concurrency();
|
const int threads = std::thread::hardware_concurrency();
|
||||||
const int max_depth = std::log(threads);
|
const int max_depth = std::sqrt(threads);
|
||||||
|
|
||||||
t1 = std::chrono::high_resolution_clock::now();
|
t1 = std::chrono::high_resolution_clock::now();
|
||||||
MergeSorterMT<int32_t> msmt([](int32_t a, int32_t b) {
|
MergeSorterMT<int32_t> msmt([](int32_t a, int32_t b) {
|
||||||
|
Loading…
Reference in New Issue
Block a user