Return the position of the rightmost bit set.
Source position: syshelph.inc line 902
public function TByteHelper.LowestSetBitPos: Int8; |
LowestSetBitPos scans the byte, 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.
System.BsfByte |
|
Return the position of the rightmost set bit in an 8-bit value. |
|
Set bit to 1. |
|
|
Set bit to 0. |
|
|
Invert bit. |
|
|
Check bit. |
|
|
Return the position of the leftmost bit set. |
|
|
Count number of bits set. |
|
|
Read or write a bit. |