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).
i64.ctz
i64 | The value to workout the trailing 0 bits for. |
i64 | The number of trailing 0 bits the value has. |
;; 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