TShortIntHelper.SetBitsCount¶
Count number of bits set.
Declaration¶
Source position: syshelph.inc line 951
public
function TShortIntHelper.SetBitsCount : Byte;
Description¶
SetBitsCount returns the number of bits set in a shortint.
See also¶
| Name | Description |
|---|---|
| System.PopCnt | Count number of set bits. |
| TShortIntHelper.SetBit | Set bit to 1. |
| TShortIntHelper.ClearBit | Set bit to 0. |
| TShortIntHelper.ToggleBit | Invert bit. |
| TShortIntHelper.TestBit | Check bit. |
| TShortIntHelper.HighestSetBitPos | Return the position of the leftmost bit set. |
| TShortIntHelper.LowestSetBitPos | Return the position of the rightmost bit set. |
| TShortIntHelper.Bits | Read or write a bit. |