Skip to content

TIntegerHelper.SetBitsCount

Count number of bits set.

Declaration

Source position: syshelph.inc line 1197

public 
function TIntegerHelper.SetBitsCount : Byte;

Description

SetBitsCount returns the number of bits set in an Integer.

See also

Name Description
System.PopCnt Count number of set bits.
TIntegerHelper.SetBit Set bit to 1.
TIntegerHelper.ClearBit Set bit to 0.
TIntegerHelper.ToggleBit Invert bit.
TIntegerHelper.TestBit Check bit.
TIntegerHelper.HighestSetBitPos Return the position of the leftmost bit set.
TIntegerHelper.LowestSetBitPos Return the position of the rightmost bit set.
TIntegerHelper.Bits Read or write a bit.