BitMathIsPowerOfTwo(UInt64) Method

Determines if the number is a power of 2.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.166 -- Release Build+d3cb24a90fe44346300dfbb17444d7b350f42d79
public static bool IsPowerOfTwo(
	ulong value
)

Parameters

value  UInt64
The value to check power of two properties.

Return Value

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

See Also