diff options
author | Reid Spencer <rspencer@reidspencer.com> | 2007-02-21 03:55:44 +0000 |
---|---|---|
committer | Reid Spencer <rspencer@reidspencer.com> | 2007-02-21 03:55:44 +0000 |
commit | 385f7547b9755997b8bd918c2a4e2fc39d7d0207 (patch) | |
tree | f5deb00b3bf1cc6509e657aea1b68c88389a4fa7 /lib/CodeGen/BranchFolding.cpp | |
parent | ffee0d4dfe4d70506495188ad62479cfaac1e0c7 (diff) |
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
Diffstat (limited to 'lib/CodeGen/BranchFolding.cpp')
0 files changed, 0 insertions, 0 deletions