diff options
author | Elliott Hughes <enh@google.com> | 2012-07-30 16:56:33 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-07-30 16:56:33 -0700 |
commit | b31d2a6b8ee469eb10a7905c50a6cf0190d89399 (patch) | |
tree | 71cfbd314cd3bf8df9d663a4a327ec9374e92ca8 | |
parent | d72102f3dbe7dff8b3efccdfcb2249c3ec95f449 (diff) | |
parent | 3e381e3a33ba6bb678bfbfc60700a4986271f022 (diff) | |
download | source.android.com-b31d2a6b8ee469eb10a7905c50a6cf0190d89399.tar.gz |
Merge "Fix cmp documentation."
-rw-r--r-- | src/tech/dalvik/dalvik-bytecode.html | 16 |
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 > c</code>, + or <code>-1</code> if <code>b < 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 < b</code>, then it is advisable to use + <code>x < 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> |