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

TQWordHelper.LowestSetBitPos

Return the position of the rightmost bit set.

Declaration

Source position: syshelph.inc line 1323

public function TQWordHelper.LowestSetBitPos: Int8;

Description

LowestSetBitPos scans the QWord, starting at position 0 (rightmost position) and returns the index of the first set bit. The position is measured from the 0-th, rightmost bit. When there are no bits set, the result is -1.

See also

System.BsfByte

  

Return the position of the rightmost set bit in an 8-bit value.

TQWordHelper.SetBit

  

Set bit to 1.

TQWordHelper.ClearBit

  

Set bit to 0.

TQWordHelper.ToggleBit

  

Invert bit.

TQWordHelper.TestBit

  

Check bit.

TQWordHelper.HighestSetBitPos

  

Return the position of the leftmost bit set.

TQWordHelper.SetBitsCount

  

Count number of bits set.

TQWordHelper.Bits

  

Read or write a bit.


Documentation generated on: Dec 21 2024