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