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

TNativeUIntHelper.SetBitsCount

Count number of bits set.

Declaration

Source position: syshelph.inc line 1559

public function TNativeUIntHelper.SetBitsCount: Byte;

Description

SetBitsCount returns the number of bits set in a NativeUInt.

See also

System.PopCnt

  

Count number of set bits.

TNativeUIntHelper.SetBit

  

Set bit to 1.

TNativeUIntHelper.ClearBit

  

Set bit to 0.

TNativeUIntHelper.ToggleBit

  

Invert bit.

TNativeUIntHelper.TestBit

  

Check bit.

TNativeUIntHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TNativeUIntHelper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TNativeUIntHelper.Bits

  

Read or write a bit.


Documentation generated on: Dec 21 2024