MathExtensions.MostSignificantBit(Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.