From: Reid Spencer
Date: Sat, 24 Mar 2007 22:23:39 +0000 (+0000)
Subject: Correct the description of srem. remainder follows the dividend not the
X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=c9fdfc8e9fbca9542077bec4ecdee65576752ae0;p=oota-llvm.git
Correct the description of srem. remainder follows the dividend not the
divisor!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35303 91177308-0d34-0410-b5e6-96231b3b80d8
---
diff --git a/docs/LangRef.html b/docs/LangRef.html
index 7d2fe55e81b..c2e1c6c4cd9 100644
--- a/docs/LangRef.html
+++ b/docs/LangRef.html
@@ -2006,11 +2006,13 @@ signed division of its two operands.
types.
Semantics:
This instruction returns the remainder of a division (where the result
-has the same sign as the divisor), not the modulus (where the
-result has the same sign as the dividend) of a value. For more
-information about the difference, see var1), not the modulo
+operator (where the result has the same sign as the divisor, var2) of
+a value. For more information about the difference, see The
-Math Forum.
+Math Forum. For a table of how this is implemented in various languages,
+please see
+Wikipedia: modulo operation.
Example:
<result> = srem i32 4, %var ; yields {i32}:result = 4 % %var