Oracle® Coherence .NET API Reference Release 3.6.1
E18812-01

Determine the most significant bit of the passed integral value.

Namespace:  Tangosol.Net.Cache
Assembly:  Coherence (in Coherence.dll) Version: 3.6.1.0 (3.6.1.0)

Syntax

C#
public virtual int IndexOfMSB(
	int n
)

Parameters

n
Type: System..::.Int32
An int.

Return Value

-1 if no bits are set; otherwise, the bit position p of the most significant bit such that 1 << p is the most significant bit of n

See Also