[llvm-commits] CVS: llvm/docs/LangRef.html
Reid Spencer
reid at x10sys.com
Sat Mar 24 15:23:57 PDT 2007
Changes in directory llvm/docs:
LangRef.html updated: 1.214 -> 1.215
---
Log message:
Correct the description of srem. remainder follows the dividend not the
divisor!
---
Diffs of the changes: (+7 -5)
LangRef.html | 12 +++++++-----
1 files changed, 7 insertions(+), 5 deletions(-)
Index: llvm/docs/LangRef.html
diff -u llvm/docs/LangRef.html:1.214 llvm/docs/LangRef.html:1.215
--- llvm/docs/LangRef.html:1.214 Wed Mar 21 21:18:56 2007
+++ llvm/docs/LangRef.html Sat Mar 24 17:23:39 2007
@@ -2006,11 +2006,13 @@
types.</p>
<h5>Semantics:</h5>
<p>This instruction returns the <i>remainder</i> of a division (where the result
-has the same sign as the divisor), not the <i>modulus</i> (where the
-result has the same sign as the dividend) of a value. For more
-information about the difference, see <a
+has the same sign as the dividend, <tt>var1</tt>), not the <i>modulo</i>
+operator (where the result has the same sign as the divisor, <tt>var2</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>.</p>
+Math Forum</a>. For a table of how this is implemented in various languages,
+please see <a href="http://mathforum.org/dr.math/problems/anne.4.28.99.html">
+Wikipedia: modulo operation</a>.</p>
<h5>Example:</h5>
<pre> <result> = srem i32 4, %var <i>; yields {i32}:result = 4 % %var</i>
</pre>
@@ -4610,7 +4612,7 @@
<a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
<a href="http://llvm.org">The LLVM Compiler Infrastructure</a><br>
- Last modified: $Date: 2007/03/22 02:18:56 $
+ Last modified: $Date: 2007/03/24 22:23:39 $
</address>
</body>
</html>
More information about the llvm-commits
mailing list