Oracle® Coherence .NET API Reference Release 3.7.1
E22844-03

Determine the most significant bit of the passed integral value.

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

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