Template Function TRAP::Math::LdExp(Vec<L, T>, const Vec<L, i32>&)#

Function Documentation#

template<u32 L, typename T>
Vec<L, T> TRAP::Math::LdExp(Vec<L, T> v, const Vec<L, i32> &exp)#

Builds a floating-point number from x and the corresponding integral exponent of two in exp, returning: significant * Exp(2, exponent).

Note

If this product is too large to be represented in the floating-point type, the result is undefined!

Parameters:
  • v – Specifies the value to be used as a source of significand.

  • exp – Specifies the value to be used as a source of exponent.

Returns:

See description.