BitMathIsPowerOfTwo(UInt32) Method

Determines if the number is a power of 2.

Definition

Namespace: Gemstone
Assembly: Gemstone.Common (in Gemstone.Common.dll) Version: 1.0.180 -- Release Build+914ca9e6d1cce46b614eb7013eba0303271cf6d8
public static bool IsPowerOfTwo(
	uint value
)

Parameters

value  UInt32
The value to check power of two properties.

Return Value

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

See Also