diff options
| author | Duncan Sands <baldrick@free.fr> | 2011-03-07 09:12:24 +0000 |
|---|---|---|
| committer | Duncan Sands <baldrick@free.fr> | 2011-03-07 09:12:24 +0000 |
| commit | 2769c6e0dcd45276cf4e49cf4ecb83fe4b32fd9e (patch) | |
| tree | 24cb79f746d45264e65082a0f3d13ca03a1d50be | |
| parent | e51e464c06f6c1922a7f1071eb594d4d83dab7ad (diff) | |
| download | bcm5719-llvm-2769c6e0dcd45276cf4e49cf4ecb83fe4b32fd9e.tar.gz bcm5719-llvm-2769c6e0dcd45276cf4e49cf4ecb83fe4b32fd9e.zip | |
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.
llvm-svn: 127156
| -rw-r--r-- | llvm/docs/LangRef.html | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/llvm/docs/LangRef.html b/llvm/docs/LangRef.html index 317e7744b79..893876620a4 100644 --- a/llvm/docs/LangRef.html +++ b/llvm/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"> |

