You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Implementation should static_assert that both T and U are unsigned and optionnaly that there are enough std::numeric_limits<>::digits between each other.
The text was updated successfully, but these errors were encountered:
Somewhat related to #41
Having to manage both
uint_fast32_t
/uint_fast16_t
oruint_fast64_t
/uint_fast32_t
is not easy, especially with templated code:The following overload:
inline void morton2D_32_decode(const uint_fast32_t morton, uint_fast16_t& x, uint_fast16_t& y);
Should also offer the following overload by casting:
inline void morton2D_32_decode(const uint_fast32_t morton, uint_fast32_t & x, uint_fast32_t & y);
This brings up the fact that it could use a templated implementation to allow that kind of overloads:
Implementation should static_assert that both
T
andU
are unsigned and optionnaly that there are enoughstd::numeric_limits<>::digits
between each other.The text was updated successfully, but these errors were encountered: