Using sqrt() in test evaluations seemed like a good idea, but linking to the math library is apparently an issue on some platform. This PR adds our own implementation of sqrt for uint64_t, removing the dependency on math library. The replacement function is not optimized -- it uses a simple binary search. But it is good enough for tests.
Using sqrt() in test evaluations seemed like a good idea, but linking to the math library is apparently an issue on some platform. This PR adds our own implementation of sqrt for uint64_t, removing the dependency on math library. The replacement function is not optimized -- it uses a simple binary search. But it is good enough for tests.
Close #1503