aboutsummaryrefslogtreecommitdiff
path: root/lib/Support/APInt.cpp
AgeCommit message (Expand)Author
2007-05-14Make the results for the rotate functions correct when rotateAmt == 0.Reid Spencer
2007-05-13Add some things needed by the llvm-gcc version supporting bit accurate integerReid Spencer
2007-05-12Fix shl to produce the correct result when the bitwidth is > 64 and theReid Spencer
2007-05-03silence some annoying gcc 4.3 warningsChris Lattner
2007-04-14We want the number of bits needed, not the power of 2.Reid Spencer
2007-04-13Implement a getBitsNeeded method to determine how many bits are needed toReid Spencer
2007-04-11Fix an approximate calculation in an assertion not to give false negatives.Reid Spencer
2007-03-21Fix a bug in getAllOnesValue() which brokeZhou Sheng
2007-03-20Fix (and simplify) 48-bit byte swap.Jeff Cohen
2007-03-19Fix coding standards violation.Reid Spencer
2007-03-19Implement extension of sign bits for negative values in the uint64_tReid Spencer
2007-03-12Revert the last patch as it violates the conditions of sext/zext.Reid Spencer
2007-03-12For APInt::z/sext(width), if width == BitWidth, just return *this.Zhou Sheng
2007-03-05Unbreak VC++ build.Jeff Cohen
2007-03-02Fix ashr for bitwidths > 64. This is now validated up to 1024 bits.Reid Spencer
2007-03-02Use a better algorithm for rounding sqrt results. Change the FIXME aboutReid Spencer
2007-03-02Add a FIXMEReid Spencer
2007-03-02Fix a problem where shifting by 64-bits leads to incorrect results on PPCReid Spencer
2007-03-01Combine two lines that can be.Reid Spencer
2007-03-01Make the static table of results in sqrt const.Reid Spencer
2007-03-01Add methods for bit width modification: sextOrTrunc, zextOrTrunc.Reid Spencer
2007-03-01Use a real table in sqrt to shorten and quicken the code.Reid Spencer
2007-03-01Add a square root function.Reid Spencer
2007-02-28Make the trunc/sext/zext methods return APInt& so that these operationsReid Spencer
2007-02-28Fix a bug in RoundDoubleToAPInt where it would force the size to 64 bitsReid Spencer
2007-02-27Join two lines that can be joined.Reid Spencer
2007-02-27Implement countLeadingOnes() and getMinSignedBits(). This helps to minimizeReid Spencer
2007-02-27Improve APInt interface:Reid Spencer
2007-02-27Conform to single person attribution in file comment.Reid Spencer
2007-02-271. Fix three serious bugs in the comparison code.Reid Spencer
2007-02-27Get rid of extraneous // in file comment.Reid Spencer
2007-02-27Simplify and document RoundDoubleToAPInt.Reid Spencer
2007-02-261. Make sure all delete operators of arrays use the array form of delete.Reid Spencer
2007-02-26Implement the getHashValue method.Reid Spencer
2007-02-26Re-enable this. The header was committed.Reid Spencer
2007-02-26another missing header :( :( :(Chris Lattner
2007-02-261. Remove redundant calls to clearUsedBits().Reid Spencer
2007-02-26Rewrite lshr to not do bit by bit copy but to copy and shift whole words.Reid Spencer
2007-02-25Fix sext operation. Shifting by zero would leave an incorrect mask.Reid Spencer
2007-02-251. Fix the flip() method to correctly flip all words of the APInt.Reid Spencer
2007-02-251. Provide more detail in file comment.Reid Spencer
2007-02-25Allow this to compile now that the header file is checked in.Reid Spencer
2007-02-25this doesn't compile, disable itChris Lattner
2007-02-25Clean up lshr and ashr to coding standards.Reid Spencer
2007-02-25Whoops, last word with bits in large shift left wasn't correct.Reid Spencer
2007-02-25Fix the > 64 bits case for left shift.Reid Spencer
2007-02-24Fix the remainder shifting in KnuthDiv.Reid Spencer
2007-02-241. Fix a bug in fromString for the <= 64bits caseReid Spencer
2007-02-241. Fix last bug in KnuthDiv. All divide tests pass up to 1024 bits now.Reid Spencer
2007-02-241. Make internal functions take const arguments where they should, justReid Spencer