How to take a number to a UInt exponent?
I would like to take two to a UInt exponent. How would I do that?
ttmath::UInt<3> a, b;
a = 2;
b = 10;
a.Pow(b);
std::cout << a << std::endl;
or if b is sufficient small:
a = 2;
a.Rcl(b.ToUInt() - 1);
std::cout << a << std::endl;