Java Virtual Machine (Java Series)
dadd
dadd Stack
Before | After |
| value1-word1 | result-word1 |
| value1-word2 | result-word2 |
| value2-word1 | ... |
| value2-word2 | |
| ... |
Takes the two top double-precision floating point numbers off of the operand stack, adds them, and pushes the result back onto the stack.
Bytecode
Type | Description |
| u1 | dadd opcode = 0x63 (99) |
iadd, fadd, ladd
Notes
The addition is computed using IEEE 754 round-to-nearest mode and gradual underflow. Standard IEEE arithmetic rules are used for the special NaN, infinity, and zero values.
prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates
Категории