Aracılığıyla paylaş


Long.BitCount(Int64) Method

Definition

Returns the number of one-bits in the two's complement binary representation of the specified long value.

[Android.Runtime.Register("bitCount", "(J)I", "")]
public static int BitCount (long i);
[<Android.Runtime.Register("bitCount", "(J)I", "")>]
static member BitCount : int64 -> int

Parameters

i
Int64

the value whose bits are to be counted

Returns

the number of one-bits in the two's complement binary representation of the specified long value.

Attributes

Remarks

Java documentation for java.lang.Long.bitCount(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