Math387::Exp2Int64 Function

long long Exp2Int64(const int X);

2^x function.

#NameTypeDescription
1Xconst int

Returns: Returns the value of 2 raised to the power of X. Valid result is returned for X smaller than 64.

Remarks:

This function is more than 10x as fast as a call to the Math387::Power function.

Declared in Dew::Math::Units::Math387 · Dew.Math/Units.Math387.h · Cross-compiler