Java Virtual Machine (Java Series)

prev next contents
ddiv

divides two doubles

Jasmin Syntax

ddiv Stack

Before

After
value1-word1 result-word1
value1-word2 result-word2
value2-word1 ...
value2-word2
...
Description

Pops the top two double-precision floating point numbers off of the stack, divides by the top number (i.e. computes value2 / value1), and pushes the double precision quotient result back onto the stack.

Division by zero will result in an infinity result. The division 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.

Bytecode

Type

Description
u1 ddiv opcode = 0x6F (111)
See Also

idiv, ldiv, fdiv


prev next contents
Java Virtual Machine, by Jon Meyer and Troy Downing, O'Reilly Associates

Категории