evm_clz
Counts zero bits from bit 255, the most significant bit, toward bit 0 in a 256-bit unsigned EVM word. Returns 256 for zero. NULL input propagates to NULL.
Example
Local
{"id":"sample_7dm3x3","title":"Sample","code":"SELECT evm_clz(1::UINT256) AS result;\n-- => [{\"result\":255}]"}
Notebook ready in readonly mode.
API reference
Exact signatures with descriptions, requirements, inputs, returns, and examples.
Category and tags
- Category
- EVM utilities
- Tag
- Types
- Tag
- EVM