Boolean AND long
Bytecode
Type | Description |
u1 | land opcode = 0x7F (127) |
Stack
..., value1.word1, value1.word2, value2.word1, value2.word2
=> ..., result.word1, result.word2
Description
Both value1 and value2 must both be of type long
.
They are popped from the operand stack. A long
result is calculated by
taking the bitwise AND of value1 and value2. The result is pushed
onto the operand stack.
Example
; This is like the Java code: ; long x; ; x &= 1; ; lload_1 ; push the long integer in local variable 1 lconst_1 ; push the integer 1 onto the stack land ; compute the bitwise and lstore_1 ; store the long result in local variable 1