Alp Toker
|
ae43cab6ba
Fix known typos
|
11 years ago |
Michael Gottesman
|
cadf450e17
Remove APInt::extractBit since it is already implemented via operator[]. Change tests for extractBit to test operator[].
|
11 years ago |
Michael Gottesman
|
5bb504f4ea
[block-freq] Add the APInt method extractBit.
|
11 years ago |
Benjamin Kramer
|
8e851920c0
APInt: Simplify code. No functionality change.
|
12 years ago |
Michael Gottesman
|
a32edcfbc5
[APInt] Implement tcDecrement as a counterpart to tcIncrement. This is for use in APFloat IEEE-754R 2008 nextUp/nextDown function.
|
12 years ago |
Michael J. Spencer
|
c6af2432c8
Replace Count{Leading,Trailing}Zeros_{32,64} with count{Leading,Trailing}Zeros.
|
12 years ago |
Jakub Staszak
|
2adf8ccbf0
Use pre-inc, pre-dec when possible.
|
12 years ago |
Jakub Staszak
|
9bc2c99482
Move part of APInt implementation from header to cpp file. These methods
|
12 years ago |
Chandler Carruth
|
d04a8d4b33
Use the new script to sort the includes of every file under lib.
|
12 years ago |
Sylvestre Ledru
|
94c22716d6
Revert 'Fix a typo 'iff' => 'if''. iff is an abreviation of if and only if. See: http://en.wikipedia.org/wiki/If_and_only_if Commit 164767
|
13 years ago |
Sylvestre Ledru
|
7e2c793a2b
Fix a typo 'iff' => 'if'
|
13 years ago |
Benjamin Kramer
|
597f2950d8
PR13326: Fix a subtle edge case in the udiv -> magic multiply generator.
|
13 years ago |
Chad Rosier
|
28dd960cd1
Fix a crash in APInt::lshr when shiftAmt > BitWidth.
|
13 years ago |
Benjamin Kramer
|
69ccf9fc0b
Move APInt::operator[] inline.
|
13 years ago |
Benjamin Kramer
|
a189885188
Move APInt::operator! inline, it's small and fuses well with surrounding code when inlined.
|
13 years ago |
Benjamin Kramer
|
a185362095
Inline a trivial helper function.
|
13 years ago |
Benjamin Kramer
|
38d2ff4ac0
Replace a hand-coded leading one counting loop with the magic from MathExtras.h.
|
13 years ago |
Chandler Carruth
|
ed7692a136
Replace the hashing functions on APInt and APFloat with overloads of the
|
13 years ago |
Ahmed Charles
|
969b739fb9
Fix undefined behavior.
|
13 years ago |
Rafael Espindola
|
04594aeffa
Add r149110 back with a fix for when the vector and the int have the same
|
13 years ago |
Eli Friedman
|
2acbd7ddc0
Fix APInt::rotl and APInt::rotr so that they work correctly. Found while writing some code that tried to use them.
|
13 years ago |
Dylan Noblesmith
|
efb0d1e42f
APInt: update asserts for base-36
|
13 years ago |
David Blaikie
|
18c7ec1344
Fix unreachable return & simplify some branches.
|
13 years ago |
Richard Smith
|
e73db4e2a7
Correctly byte-swap APInts with bit-widths greater than 64.
|
13 years ago |
Eli Friedman
|
9eb6b4d91b
Fix APInt::operator*= so that it computes the correct result for large integers where there is unsigned overflow. Fix APFloat::toString so that it doesn't depend on the incorrect behavior in common cases (and computes the correct result in some rare cases). Fixes PR11086.
|
14 years ago |
Douglas Gregor
|
f34fa6f34e
U is good enough
|
14 years ago |
Douglas Gregor
|
f83f0f8246
Eliminate sign-comparison warnings in APInt
|
14 years ago |
Benjamin Kramer
|
586a55a290
Silence -Wsign-compare warnings from GCC.
|
14 years ago |
Douglas Gregor
|
dcd9996241
Add APInt support for converting to/from hexatridecimal strings
|
14 years ago |
Jeffrey Yasskin
|
3ba292dbc2
Add APInt(numBits, ArrayRef<uint64_t> bigVal) constructor to prevent future ambiguity
|
14 years ago |