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

TSmallIntHelper.SetBitsCount

Count number of bits set

Declaration

Source position: syshelph.inc line 587

public function TSmallIntHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a smallint.

See also

System.PopCnt

  

Count number of set bits

TSmallIntHelper.SetBit

  

Set bit to 1

TSmallIntHelper.ClearBit

  

Set bit to 0

TSmallIntHelper.ToggleBit

  

Invert bit

TSmallIntHelper.TestBit

  

Check bit

TSmallIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TSmallIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TSmallIntHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022