bit_count
Count set bits and total bits, convert integers between decimal, binary, hex, and octal, and detect powers of two from a single value.
Instructions
Count set bits (popcount), total bits, and convert between decimal, binary, hex, and octal. Detects powers of two.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| value | Yes | Integer or binary/hex string (e.g. 42, 0xFF, 0b1010) |