1. Make internal functions take const arguments where they should, just
authorReid Spencer <rspencer@reidspencer.com>
Sat, 24 Feb 2007 03:58:46 +0000 (03:58 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sat, 24 Feb 2007 03:58:46 +0000 (03:58 +0000)
commit9d6c919efe4312cf79343ed1d676d0efa087e112
tree1df0ccbfb95a6a708ea9c4d3ddb1cc4fb37c92cc
parentfa8a0e5256bd7b13ab7859616c6983718877f3a2
1. Make internal functions take const arguments where they should, just
   to be safe.
2. Make internal functions that return a carry/borrow return bool instead
   of uint64_t because the carry/borrow can only be in range [0,1].
3. Assert that the pointers to KnuthDiv are all different so that the
   result and operands can't overlap.
4. Add debug output to KnuthDiv function.
5. Fix a problem with KnuthDiv by separating the b's complement operation
   from the subtraction borrow operation. This fixes a wide range of
   division problems, but alas, not all of them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34554 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Support/APInt.cpp