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

TCardinalHelper.SetBitsCount

Count number of bits set

Declaration

Source position: syshelph.inc line 658

public function TCardinalHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a Cardinal.

See also

System.PopCnt

  

Count number of set bits

TCardinalHelper.SetBit

  

Set bit to 1

TCardinalHelper.ClearBit

  

Set bit to 0

TCardinalHelper.ToggleBit

  

Invert bit

TCardinalHelper.TestBit

  

Check bit

TCardinalHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TCardinalHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TCardinalHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022