MPIR library's exponent function to be used for integer value
I need to calculate a^b where a is a hexadecimal value and b is any integer random number.
I am using mpir's "mpz_mul_2exp" function for the same. but result doesn't match with expected result. Please help.

Thanks in Advance.
MPIR library's exponent function to be used for integer value
===

I need to calculate a^b where a is a hexadecimal value and b is any integer random number.
I am using mpir's "mpz_mul_2exp" function for the same. but result doesn't match with expected result. Please help.

Thanks in Advance.