Template Function librapid::ldexp(const __gmp_expr<A, B>&, const int64_t)#

Function Documentation#

template<typename A, typename B>
__gmp_expr<A, B> librapid::ldexp(const __gmp_expr<A, B> &x, const int64_t exp) noexcept#

Multiply a value by 2 raised to the power of an exponent

Template Parameters
  • x – The value

  • exp – The exponent

Returns

x * 2^exp