BinaryMathNextPowerOfTwoGreaterOrEqualThan(Int64) Method |
Returns x if it is a power of two; otherwise, returns the smallest power of two that is greater than x.
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3448.0 (4.8.3448.0)
Syntaxpublic static long NextPowerOfTwoGreaterOrEqualThan(
long x
)
Parameters
- x Int64
- The argument to test.
Return Value
Int64x if it is a power of two; otherwise, the smallest power of two that is greater than
x.
Exceptions
See Also