[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h
Reid Spencer
reid at x10sys.com
Fri Feb 16 16:18:20 PST 2007
Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.10 -> 1.11
---
Log message:
Fix bugs introduced by constructor parameter order change.
---
Diffs of the changes: (+3 -3)
APInt.h | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.10 llvm/include/llvm/ADT/APInt.h:1.11
--- llvm/include/llvm/ADT/APInt.h:1.10 Fri Feb 16 16:36:51 2007
+++ llvm/include/llvm/ADT/APInt.h Fri Feb 16 18:18:01 2007
@@ -254,7 +254,7 @@
/// @brief Unary negation operator
inline APInt operator-() const {
- return APInt(0, BitWidth) - (*this);
+ return APInt(BitWidth, 0) - (*this);
}
/// @brief Array-indexing support.
@@ -469,7 +469,7 @@
APInt getLoBits(unsigned numBits) const;
/// @returns true if the argument APInt value is a power of two > 0.
- inline bool isPowerOf2() const;
+ bool isPowerOf2() const;
/// @returns the number of zeros from the most significant bit to the first
/// one bits.
@@ -483,7 +483,7 @@
unsigned countPopulation() const;
/// @returns the total number of bits.
- inline unsigned getNumBits() const {
+ inline unsigned getBitWidth() const {
return BitWidth;
}
More information about the llvm-commits
mailing list