ladd

Add two long

Bytecode

Type Description
u1 ladd 0x61 (97)

Stack ..., value1.word1, value1.word2, value2.word1, value2.word2 => ..., result.word1, result.word2

Description
Both value1 and value2 must be of type long. The values are popped from the operand stack. The long result is value1 + value2. The result is pushed onto the operand stack.

If a long addition overflows, then the result is the low-order bits of the mathematical sum as represented by a long. If overflow occurs, then the sign of the result will not be the same as the sign of the mathematical sum of the two values.