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

TNativeIntHelper.SetBitsCount

Count number of bits set.

Declaration

Source position: syshelph.inc line 1470

public function TNativeIntHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a NativeInt.

See also

System.PopCnt

  

Count number of set bits.

TNativeIntHelper.SetBit

  

Set bit to 1.

TNativeIntHelper.ClearBit

  

Set bit to 0.

TNativeIntHelper.ToggleBit

  

Invert bit.

TNativeIntHelper.TestBit

  

Check bit.

TNativeIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TNativeIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TNativeIntHelper.Bits

  

Read or write a bit.


Documentation generated on: Nov 26 2024