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