BitMathIsPowerOfTwo(Int64) Method

Determines if the number is a power of 2.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.171 -- Release Build+4f4d518944b843c059d40b523747cd410a7c216d
public static bool IsPowerOfTwo(
	long value
)

Parameters

value  Int64
The value to check power of two properties.

Return Value

Boolean
true if value is a power of 2; otherwise, false.

Exceptions

ArgumentOutOfRangeExceptionIf is less than zero

See Also