aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-10-11 22:06:50 +0000
committerChris Lattner <sabre@nondot.org>2008-10-11 22:06:50 +0000
commit71f95b8531183d4a2f7c84d66d5aec17bc41b316 (patch)
treead37193be585259d8b0bf852a1d723f901dc2f3b
parent43778b38595b2580018e8b59a8d10dadc9644a87 (diff)
downloadexternal_llvm-71f95b8531183d4a2f7c84d66d5aec17bc41b316.zip
external_llvm-71f95b8531183d4a2f7c84d66d5aec17bc41b316.tar.gz
external_llvm-71f95b8531183d4a2f7c84d66d5aec17bc41b316.tar.bz2
random cleanup
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@57383 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/ADT/APInt.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/llvm/ADT/APInt.h b/include/llvm/ADT/APInt.h
index 6baf123..b1790f8 100644
--- a/include/llvm/ADT/APInt.h
+++ b/include/llvm/ADT/APInt.h
@@ -458,7 +458,6 @@ public:
/// @param numBits the bitwidth of the result
/// @param loBitsSet the number of low-order bits set in the result.
/// @brief Get a value with low bits set
- // XXX why isn't this inlining?
static APInt getLowBitsSet(uint32_t numBits, uint32_t loBitsSet) {
assert(loBitsSet <= numBits && "Too many bits to set!");
// Handle a degenerate case, to avoid shifting by word size
@@ -466,7 +465,7 @@ public:
return APInt(numBits, 0);
if (loBitsSet == APINT_BITS_PER_WORD)
return APInt(numBits, -1ULL);
- // For small values, return quickly
+ // For small values, return quickly.
if (numBits < APINT_BITS_PER_WORD)
return APInt(numBits, (1ULL << loBitsSet) - 1);
return (~APInt(numBits, 0)).lshr(numBits - loBitsSet);