evm_bit_count
Scalar function
Population count: Returns the number of set bits (1s) in a UINT256 value. Useful for bitmap analysis and flag counting.
Overloads
evm_bit_count(UINT256)
Parameters
| Name | Type |
|---|---|
| x | UINT256 |
Returns
| Name | Type |
|---|---|
| count | BIGINT |
1
SELECT evm_bit_count(permissions_bitmap) AS active_permissions;
Notebook ready in readonly mode.