1. Add a dump() method for faster debugging.
authorReid Spencer <rspencer@reidspencer.com>
Wed, 21 Feb 2007 03:55:44 +0000 (03:55 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Wed, 21 Feb 2007 03:55:44 +0000 (03:55 +0000)
commit385f7547b9755997b8bd918c2a4e2fc39d7d0207
treef5deb00b3bf1cc6509e657aea1b68c88389a4fa7
parentffee0d4dfe4d70506495188ad62479cfaac1e0c7
1. Add a dump() method for faster debugging.
2. Change 0 initialization of union to larger component so all is zeroed.
3. Fix the borrow logic in subtraction so it works for > 128 bits.
4. Rewrite fromString to use a simpler but correct algorithm and also to
   not set the bit width contrary to the user's request.
5. Optimize toString a bit by making it only do one Knuth divide per
   iteration instead of two.

With these changes, all arithmetic passes (verified by pari/GP) up to
1024 bits except for certain division cases.

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