diff options
| author | Reid Spencer <rspencer@reidspencer.com> | 2007-03-24 22:23:39 +0000 |
|---|---|---|
| committer | Reid Spencer <rspencer@reidspencer.com> | 2007-03-24 22:23:39 +0000 |
| commit | 806ad6afb8693368a78290fbe9a5b931df8da0d1 (patch) | |
| tree | 5d9bdc015a452194f6813e84efd6cca25c3c9e56 /llvm/docs | |
| parent | 3e51cacd4fcb0b52dbc0c52423dc7fcef52ed39a (diff) | |
| download | bcm5719-llvm-806ad6afb8693368a78290fbe9a5b931df8da0d1.tar.gz bcm5719-llvm-806ad6afb8693368a78290fbe9a5b931df8da0d1.zip | |
Correct the description of srem. remainder follows the dividend not the
divisor!
llvm-svn: 35303
Diffstat (limited to 'llvm/docs')
| -rw-r--r-- | llvm/docs/LangRef.html | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 7d2fe55e81b..c2e1c6c4cd9 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/docs/LangRef.html @@ -2006,11 +2006,13 @@ signed division of its two operands.</p> 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> |

