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

TInt64Helper.HighestSetBitPos

Return the position of the leftmost bit set.

Declaration

Source position: syshelph.inc line 1384

public function TInt64Helper.HighestSetBitPos: Int8;

Description

HighestSetBitPos scans the Int64, starting at the leftmost position and working towards position 0, 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.BsrByte

  

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

TInt64Helper.SetBit

  

Set bit to 1.

TInt64Helper.ClearBit

  

Set bit to 0.

TInt64Helper.ToggleBit

  

Invert bit.

TInt64Helper.TestBit

  

Check bit.

TInt64Helper.LowestSetBitPos

  

Return the position of the rightmost bit set.

TInt64Helper.SetBitsCount

  

Count number of bits set.

TInt64Helper.Bits

  

Read or write a bit.


Documentation generated on: Dec 27 2024