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

TShortIntHelper.SetBitsCount

Count number of bits set

Declaration

Source position: syshelph.inc line 481

public function TShortIntHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a shortint.

See also

System.PopCnt

  

Count number of set bits

TShortIntHelper.SetBit

  

Set bit to 1

TShortIntHelper.ClearBit

  

Set bit to 0

TShortIntHelper.ToggleBit

  

Invert bit

TShortIntHelper.TestBit

  

Check bit

TShortIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TShortIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set

TShortIntHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022