evm_ctz
Scalar function
Count trailing zeros: Returns the number of trailing zero bits in a UINT256 value. Returns 256 for zero. Useful for finding the least significant bit position.
Overloads
evm_ctz(UINT256)
Parameters
| Name | Type |
|---|---|
| x | UINT256 |
Returns
| Name | Type |
|---|---|
| trailing_zeros | BIGINT |
1
SELECT evm_ctz(value) AS lsb_position;
Notebook ready in readonly mode.