i64.clz
Pops an i64 value off the stack, counts the number of leading zero bits on the left, and then pushes the result back on to the stack. This is the number of 0 bits at the higher end of the binary number (0b00000110 has 5 leading zeros, plus the other zero bits for the remaining 7 bytes that make up the 64 bit integer).

Syntax

i64.clz

Stack In

i64 The value to workout the leading 0 bits for.

Stack Out

i64 The number of leading 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 leading zeros
;; and push the result back onto the stack
i64.clz

;; The stack contains an i64 value of 5