aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2011-03-07 09:12:24 +0000
committerDuncan Sands <baldrick@free.fr>2011-03-07 09:12:24 +0000
commitdea3a5e202fa6bcd4885273a25a77ded701be909 (patch)
tree3ad765d3d4d0fe1c06f7de8c4505666ed85f5a5e
parente7e9a60df6ea92460337569e24746f390cbd56e3 (diff)
Clarify that the result of an srem is only guaranteed to have the same sign as the
left-hand-side if the result is non-zero. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127156 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--docs/LangRef.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 317e7744b79..893876620a4 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -3611,9 +3611,10 @@ Instruction</a> </div>
<h5>Semantics:</h5>
<p>This instruction returns the <i>remainder</i> of a division (where the result
- has the same sign as the dividend, <tt>op1</tt>), not the <i>modulo</i>
- operator (where the result has the same sign as the divisor, <tt>op2</tt>) of
- a value. For more information about the difference,
+ is either zero or has the same sign as the dividend, <tt>op1</tt>), not the
+ <i>modulo</i> operator (where the result is either zero or has the same sign
+ as the divisor, <tt>op2</tt>) of a value.
+ For more information about the difference,
see <a href="http://mathforum.org/dr.math/problems/anne.4.28.99.html">The
Math Forum</a>. For a table of how this is implemented in various languages,
please see <a href="http://en.wikipedia.org/wiki/Modulo_operation">