aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/APInt.cpp
AgeCommit message (Expand)AuthorFilesLines
2012-09-27Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. S...Sylvestre Ledru1-4/+4
2012-09-27Fix a typo 'iff' => 'if'Sylvestre Ledru1-4/+4
2012-07-11PR13326: Fix a subtle edge case in the udiv -> magic multiply generator.Benjamin Kramer1-1/+1
2012-06-08Fix a crash in APInt::lshr when shiftAmt > BitWidth.Chad Rosier1-1/+1
2012-03-14Move APInt::operator[] inline.Benjamin Kramer1-6/+0
2012-03-14Move APInt::operator! inline, it's small and fuses well with surrounding code...Benjamin Kramer1-10/+0
2012-03-12Inline a trivial helper function.Benjamin Kramer1-7/+3
2012-03-11Replace a hand-coded leading one counting loop with the magic from MathExtras.h.Benjamin Kramer1-8/+1
2012-03-04Replace the hashing functions on APInt and APFloat with overloads of theChandler Carruth1-87/+6
2012-02-24Fix undefined behavior.Ahmed Charles1-1/+1
2012-01-27Add r149110 back with a fix for when the vector and the int have the sameRafael Espindola1-0/+12
2011-12-22Fix APInt::rotl and APInt::rotr so that they work correctly. Found while wri...Eli Friedman1-12/+4
2011-12-16APInt: update asserts for base-36Dylan Noblesmith1-1/+5
2011-12-01Fix unreachable return & simplify some branches.David Blaikie1-9/+5
2011-11-23Correctly byte-swap APInts with bit-widths greater than 64.Richard Smith1-17/+26
2011-10-07Fix APInt::operator*= so that it computes the correct result for large intege...Eli Friedman1-1/+2
2011-09-20U is good enoughDouglas Gregor1-2/+2
2011-09-20Eliminate sign-comparison warnings in APIntDouglas Gregor1-2/+4
2011-09-19Silence -Wsign-compare warnings from GCC.Benjamin Kramer1-2/+2
2011-09-14Add APInt support for converting to/from hexatridecimal stringsDouglas Gregor1-12/+19
2011-07-18Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future a...Jeffrey Yasskin1-6/+14
2011-06-15add option for literal formatting to APInt::toString()Ted Kremenek1-3/+34
2011-05-22fix a bug for hosts without round, PR8893.Chris Lattner1-1/+1
2011-04-15Fix a ton of comment typos found by codespell. Patch byChris Lattner1-1/+1
2011-03-27Constant folding support for calls to umul.with.overflow(), basically identic...Frits van Bommel1-0/+10
2011-03-17Add an argument to APInt's magic udiv calculation to specify the number of bi...Benjamin Kramer1-2/+4
2011-02-21The signed version of our "magic number" computation for the integer approxim...Cameron Zwarich1-1/+1
2010-12-07PR5207: Change APInt methods trunc(), sext(), zext(), sextOrTrunc() andJay Foad1-74/+68
2010-12-04APInt: microoptimize a few methods.Benjamin Kramer1-4/+0
2010-12-01PR5207: Rename overloaded APInt methods set(), clear(), flip() toJay Foad1-13/+13
2010-11-30PR5207: Make APInt::set(), APInt::clear() and APInt::flip() return void.Jay Foad1-6/+3
2010-11-18Bounds-check APInt's operator[].Dan Gohman1-0/+1
2010-10-14fix a bug I introduced, no idea how this didn't repro right.Chris Lattner1-2/+2
2010-10-14add uadd_ov/usub_ov to apint, consolidate constant foldingChris Lattner1-0/+12
2010-10-13constify these methods.Chris Lattner1-5/+5
2010-10-13add a few operations for signed operations that also Chris Lattner1-0/+46
2010-08-18stomp some more undefined behavior, PR7775.Chris Lattner1-6/+7
2010-07-14Don't pass StringRef by reference.Benjamin Kramer1-3/+3
2010-05-15improve portability to systems that don't have round, patch byChris Lattner1-4/+3
2010-03-26improve portability to minix, patch by Chris Lattner1-2/+2
2010-03-24Fix minor style issues.Dan Gohman1-38/+37
2010-02-28Teach APFloat how to create both QNaNs and SNaNs and with arbitrary-widthJohn McCall1-1/+9
2010-02-10Fix "the the" and similar typos.Dan Gohman1-2/+2
2010-02-03Make APInt::countLeadingZerosSlowCase() treat the contents of padding bitsJohn McCall1-6/+18
2010-01-05Change errs() to dbgs().David Greene1-34/+34
2009-12-24Set Remainder before Quotient in case Quotient and LHS alias. The newJohn McCall1-1/+1
2009-09-20Tabs -> spaces, and remove trailing whitespace.Daniel Dunbar1-1/+1
2009-09-06Remove some unused variables and methods warned about byDuncan Sands1-2/+0
2009-08-23remove the dead std::ostream APInt inserterChris Lattner1-8/+2
2009-08-21Clean up the APInt function getDigit.Erick Tryzelaar1-21/+19