Template Function librapid::ldexp(const T&, const int64_t)#

Function Documentation#

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

Return a value multiplied by 2 raised to the power of an exponent

Template Parameters

T – The type of the value

Parameters
  • x – The value to multiply

  • exp – The exponent to raise 2 to

Returns

x * 2^exp