template <std::integral T, std::unsigned_integral U> inline constexpr T utx::mod2n(const T & dividend, const U & n);
Calculate dividend % (2^n)
Divisor is (2^n)
The same as utx::mod, but set the divisor to 2^n. Please read the utx::mod doc page.
If n is zero, it gets zero .
#include <utxcpp/math.hpp>