⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 instructions2.doc28.html

📁 一本关于java方面的书籍 英文html形式 关于Java虚拟机
💻 HTML
字号:
<html><head><title>VM Spec  </title></head><body BGCOLOR=#eeeeff text=#000000 LINK=#0000ff VLINK=#000077 ALINK=#ff0000> <a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc27.html">Prev</a> | <a href="Instructions2.doc29.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><hr><br> <a name="dcmpop"></a><h2>dcmp&lt;op&gt;</h2><a name="dcmpop.Operation"></a><b>Operation</b><br><a name="67545"></a>Compare <code>double</code><p><Table Border="3"><tr><td><a name="67544"></a> <i>dcmp&lt;op&gt;</i><td><a name="87568"></a> </Table><Table><tr><td></Table><p><a name="dcmpop.Forms"></a><b>Forms</b><br><a name="67546"></a><i>dcmpg</i> = 152 (0x98) <i>dcmpl</i> = 151 (0x97)<p><a name="dcmpop.Stack"></a><b>Stack</b><br><a name="67547"></a>..., <i>value1.word1</i>, <i>value1.word2</i>, <i>value2.word1</i>, <i>value2.word1</i> <img src="chars/arrwdbrt.gif"> ..., <i>result</i><p><a name="dcmpop.Description"></a><b>Description</b><br><a name="92039"></a>Both <i>value1</i> and <i>value2</i> must be of type <code>double</code>. The values are popped from the operand stack, and a floating-point comparison is performed. If <i>value1</i> is greater than <i>value2</i>, the <code>int</code> value <i>1</i> is pushed onto the operand stack. If <i>value1</i> is equal to <i>value2</i>, the <code>int</code> value <i>0</i> is pushed onto the operand stack. If <i>value1</i> is less than <i>value2</i>, the <code>int</code> value -<i>1</i> is pushed onto the operand stack. If either <i>value1</i> or <i>value2</i> is NaN, the <i>dcmpg</i> instruction pushes the <code>int</code> value <i>1</i> onto the operand stack and the <i>dcmpl</i> instruction pushes the <code>int</code> value -<i>1</i> onto the operand stack.<p><a name="67549"></a>Floating-point comparison is performed in accordance with IEEE 754. All values other than NaN are ordered, with negative infinity less than all finite values and positive infinity greater than all finite values. Positive zero and negative zero are considered equal.<p><a name="dcmpop.Notes"></a><b>Notes</b><br><a name="67550"></a>The <i>dcmpg</i> and <i>dcmpl</i> instructions differ only in their treatment of a comparison involving NaN. NaN is unordered, so any <code>double</code> comparison fails if either or both of its operands are NaN. With both <i>dcmpg</i> and <i>dcmpl</i> available, any <code>double</code> comparison may be compiled to push the same <i>result</i> onto the operand stack whether the comparison fails on non-NaN values or fails because it encountered a NaN. For more information, see <a href="Compiling.doc.html#8478">Section 7.5, "More Control Examples."</a><p><a name="67554"></a><p><hr><!-- This inserts footnotes--><p><a href="VMSpecTOC.doc.html">Contents</a> | <a href="Instructions2.doc27.html">Prev</a> | <a href="Instructions2.doc29.html">Next</a> | <a href="Mnemonics.doc.html">Index</a><p><font size=-1>Java Virtual Machine Specification (HTML generated by dkramer on February 25, 1997)<br><i><a href="Copyright.doc.html">Copyright &#169 1996 Sun Microsystems, Inc.</a>All rights reserved</i><br>Please send any comments or corrections to <a href="mailto:doug.kramer@sun.com">doug.kramer@sun.com</a></font></body></html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -