Correct the implementation of srem to be remainder, not modulus. The sign of
authorReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 21:56:22 +0000 (21:56 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 24 Mar 2007 21:56:22 +0000 (21:56 +0000)
commit53c9520b238514a9c1b63ff02221f7467aad1337
tree632dea317e03200231f7c40d8418495b69a4c994
parent5957d8ffd83836b534952921e9430216ecc14978
Correct the implementation of srem to be remainder, not modulus. The sign of
the result must follow the sign of the divisor.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35302 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/ADT/APInt.h