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

TWordHelper.LowestSetBitPos

Return the position of the rightmost bit set

Declaration

Source position: syshelph.inc line 536

public function TWordHelper.LowestSetBitPos: Int8;

Description

LowestSetBitPos scans the word, 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

TWordHelper.SetBit

  

Set bit to 1

TWordHelper.ClearBit

  

Set bit to 0

TWordHelper.ToggleBit

  

Invert bit

TWordHelper.TestBit

  

Check bit

TWordHelper.HighestSetBitPos

  

Return the position of the leftmost bit set

TWordHelper.SetBitsCount

  

Count number of bits set

TWordHelper.Bits

  

Read or write a bit


Documentation generated on: Sep 29 2022