i64.ctz
Pops an i64 value off the stack, counts the number of trailing zero bits on the right, and then pushes the result back on to the stack. This is the number of 0 bits at the lower end of the binary number (0b01100100 has 2 trailing zeros).

Syntax

i64.ctz

Stack In

i64 The value to workout the trailing 0 bits for.

Stack Out

i64 The number of trailing 0 bits the value has.

Example

;; Push the i64 value 0x07228CE20F12AB44 onto the stack
i64.const 0x07228CE20F12AB44

;; Pop the i64 value off the stack, count the number of trailing zeros
;; and push the result back onto the stack
i64.ctz

;; The stack contains an i64 value of 4