Add integer square root to SCMP.

This commit is contained in:
2023-11-09 00:38:01 -08:00
parent 94672bba98
commit f99d5a8356
4 changed files with 70 additions and 1 deletions

View File

@@ -115,6 +115,13 @@ WithinTolerance(T a, T b, T epsilon)
}
/// \brief Integer square-root.
///
/// \param n A max-value integer whose square root should be returned.
/// \return The square root of $n$.
size_t ISqrt(size_t n);
} // namespace scmp