C# 클래스 GitSharp.Core.Util.Int32Extensions

파일 보기 프로젝트 열기: stschake/GitSharp

공개 메소드들

메소드 설명
BitCount ( this n ) : int

computes the number of 1 bits in the two's complement binary representation of the integer

LowestOneBit ( this n ) : int

Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified int value. Returns 32 if the specified value has no one-bits in its two's complement representation, in other words if it is equal to zero.

NumberOfTrailingZeros ( this n ) : int

computes the number of 0 bits to the right of the first 1

메소드 상세

BitCount() 공개 정적인 메소드

computes the number of 1 bits in the two's complement binary representation of the integer
public static BitCount ( this n ) : int
n this
리턴 int

LowestOneBit() 공개 정적인 메소드

Returns the number of zero bits preceding the highest-order ("leftmost") one-bit in the two's complement binary representation of the specified int value. Returns 32 if the specified value has no one-bits in its two's complement representation, in other words if it is equal to zero.
public static LowestOneBit ( this n ) : int
n this
리턴 int

NumberOfTrailingZeros() 공개 정적인 메소드

computes the number of 0 bits to the right of the first 1
public static NumberOfTrailingZeros ( this n ) : int
n this
리턴 int