[llvm-commits] [llvm] r127156 - /llvm/trunk/docs/LangRef.html
Duncan Sands
baldrick at free.fr
Mon Mar 7 01:12:24 PST 2011
Author: baldrick
Date: Mon Mar 7 03:12:24 2011
New Revision: 127156
URL: http://llvm.org/viewvc/llvm-project?rev=127156&view=rev
Log:
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.
Modified:
llvm/trunk/docs/LangRef.html
Modified: llvm/trunk/docs/LangRef.html
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/LangRef.html?rev=127156&r1=127155&r2=127156&view=diff
==============================================================================
--- llvm/trunk/docs/LangRef.html (original)
+++ llvm/trunk/docs/LangRef.html Mon Mar 7 03:12:24 2011
@@ -3611,9 +3611,10 @@
<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">
More information about the llvm-commits
mailing list