aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2012-07-30 22:25:36 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2012-07-30 22:25:36 -0700
commit2693152ec0f8cf808a0669828d361fb4033008a5 (patch)
tree25b7dd0bc8db0ed82d8c63636d0d2d78d5765af7
parent12aa79417ad9fe5f68c173b8f83fed5f09c7e237 (diff)
parent2717cf1dea6819b972ccd0ff2cb57305a449e266 (diff)
downloadsource.android.com-2693152ec0f8cf808a0669828d361fb4033008a5.tar.gz
am 2717cf1d: am bea985eb: am b31d2a6b: Merge "Fix cmp documentation."
* commit '2717cf1dea6819b972ccd0ff2cb57305a449e266': Fix cmp documentation.
-rw-r--r--src/tech/dalvik/dalvik-bytecode.html16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/tech/dalvik/dalvik-bytecode.html b/src/tech/dalvik/dalvik-bytecode.html
index 66c9c488..e848d9ee 100644
--- a/src/tech/dalvik/dalvik-bytecode.html
+++ b/src/tech/dalvik/dalvik-bytecode.html
@@ -598,18 +598,18 @@
<code>B:</code> first source register or pair<br/>
<code>C:</code> second source register or pair</td>
<td>Perform the indicated floating point or <code>long</code> comparison,
- storing <code>0</code> if the two arguments are equal, <code>1</code>
- if the second argument is larger, or <code>-1</code> if the first
- argument is larger. The "bias" listed for the floating point operations
- indicates how <code>NaN</code> comparisons are treated: "Gt bias"
+ setting <code>a</code> to <code>0</code> if <code>b == c</code>,
+ <code>1</code> if <code>b &gt; c</code>,
+ or <code>-1</code> if <code>b &lt; c</code>.
+ The "bias" listed for the floating point operations
+ indicates how <code>NaN</code> comparisons are treated: "gt bias"
instructions return <code>1</code> for <code>NaN</code> comparisons,
- and "lt bias" instructions return
- <code>-1</code>.
+ and "lt bias" instructions return <code>-1</code>.
<p>For example, to check to see if floating point
- <code>a &lt; b</code>, then it is advisable to use
+ <code>x &lt; y</code> it is advisable to use
<code>cmpg-float</code>; a result of <code>-1</code> indicates that
the test was true, and the other values indicate it was false either
- due to a valid comparison or because one or the other values was
+ due to a valid comparison or because one of the values was
<code>NaN</code>.</p>
</td>
</tr>