|
|
@@ -15,7 +15,7 @@ namespace entt {
|
|
|
* @param mod _Modulus_, it must be a power of two.
|
|
|
* @return The common remainder.
|
|
|
*/
|
|
|
-template<std::unsigned_integral Type>
|
|
|
+template<stl::unsigned_integral Type>
|
|
|
[[nodiscard]] constexpr Type fast_mod(const Type value, const stl::size_t mod) noexcept {
|
|
|
ENTT_ASSERT_CONSTEXPR(std::has_single_bit(mod), "Value must be a power of two");
|
|
|
return static_cast<Type>(value & (mod - 1u));
|