Unit 'sysutils' Package
[Overview][Constants][Types][Classes][Procedures and functions][Variables][Index] [#rtl]

TIntegerHelper.SetBitsCount

Count number of bits set

Declaration

Source position: syshelph.inc line 727

public function TIntegerHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in an Integer.

See also

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


Documentation generated on: Sep 29 2022