i64.and
Pops two i64 values off the stack, perform a bitwise AND between them, and then pushes the result back on to the stack.
$result = $first & $second

Syntax

i64.and

Stack In

i64 The first value.
i64 The second value.

Stack Out

i64 The result of performing a bitwise AND operation between the first and second values.

Example

;; Push the i64 value 0b00001010 (10) onto the stack
i64.const 10

;; Push the i64 value 0b00001100 (12) onto the stack
i64.const 12

;; Pop the two i64 values off the stack, perform bitwise AND
;; and push the result back onto the stack
i64.and

;; The stack contains an i64 value of 0b00001000 (8)