TWordHelper.SetBitsCount¶
Count number of bits set.
Declaration¶
Source position: syshelph.inc line 1007
public
function TWordHelper.SetBitsCount : Byte;
Description¶
SetBitsCount returns the number of bits set in a word.
See also¶
| Name | Description |
|---|---|
| System.PopCnt | Count number of set bits. |
| 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.LowestSetBitPos | Return the position of the rightmost bit set. |
| TWordHelper.Bits | Read or write a bit. |