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

TWordHelper.SetBitsCount

Count number of bits set

Declaration

Source position: syshelph.inc line 537

public function TWordHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a word.

See also

System.PopCnt

  

Count number of set bits

TWordHelper.SetBit

  

Set bit to 1

TWordHelper.ClearBit

  

Set bit to 0

TWordHelper.ToggleBit

  

Invert bit

TWordHelper.TestBit

  

Check bit

TWordHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TWordHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TWordHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022