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
Runs locally
{"id":"sample_7dm3x3","title":"Sample"}
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.
Runs locally
SELECT evm_clz(1::UINT256) AS result;
-- => [{"result":255}]