[llvm-commits] [llvm] r57383 - /llvm/trunk/include/llvm/ADT/APInt.h
Chris Lattner
sabre at nondot.org
Sat Oct 11 15:06:50 PDT 2008
Author: lattner
Date: Sat Oct 11 17:06:50 2008
New Revision: 57383
URL: http://llvm.org/viewvc/llvm-project?rev=57383&view=rev
Log:
random cleanup
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=57383&r1=57382&r2=57383&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Sat Oct 11 17:06:50 2008
@@ -458,7 +458,6 @@
/// @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 @@
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);
More information about the llvm-commits
mailing list