Modifica

Condividi tramite


MathExtensions.MostSignificantBit(Int32) Method

Definition

Get the most significant bit from the input value.

public:
[System::Runtime::CompilerServices::Extension]
 static int MostSignificantBit(int x);
public static int MostSignificantBit (this int x);
static member MostSignificantBit : int -> int
<Extension()>
Public Function MostSignificantBit (x As Integer) As Integer

Parameters

x
Int32

The input value to examine.

Returns

Integer value that is equal to the most significant bit within the input value.

Applies to