Megosztás a következőn keresztül:


Long.HighestOneBit(Int64) Method

Definition

Returns a long value with at most a single one-bit, in the position of the highest-order ("leftmost") one-bit in the specified long value.

[Android.Runtime.Register("highestOneBit", "(J)J", "")]
public static long HighestOneBit (long i);
[<Android.Runtime.Register("highestOneBit", "(J)J", "")>]
static member HighestOneBit : int64 -> int64

Parameters

i
Int64

the value whose highest one bit is to be computed

Returns

a long value with a single one-bit, in the position of the highest-order one-bit in the specified value, or zero if the specified value is itself equal to zero.

Attributes

Remarks

Java documentation for java.lang.Long.highestOneBit(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to