[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h
Chris Lattner
sabre at nondot.org
Thu May 3 10:09:57 PDT 2007
Changes in directory llvm/include/llvm/ADT:
APInt.h updated: 1.66 -> 1.67
---
Log message:
remove useless type qualifiers
---
Diffs of the changes: (+2 -2)
APInt.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.66 llvm/include/llvm/ADT/APInt.h:1.67
--- llvm/include/llvm/ADT/APInt.h:1.66 Fri Apr 13 14:19:07 2007
+++ llvm/include/llvm/ADT/APInt.h Thu May 3 12:09:36 2007
@@ -1038,13 +1038,13 @@
/// @returns true if the argument APInt value is a sequence of ones
/// starting at the least significant bit with the remainder zero.
-inline const bool isMask(uint32_t numBits, const APInt& APIVal) {
+inline bool isMask(uint32_t numBits, const APInt& APIVal) {
return APIVal.getBoolValue() && ((APIVal + APInt(numBits,1)) & APIVal) == 0;
}
/// @returns true if the argument APInt value contains a sequence of ones
/// with the remainder zero.
-inline const bool isShiftedMask(uint32_t numBits, const APInt& APIVal) {
+inline bool isShiftedMask(uint32_t numBits, const APInt& APIVal) {
return isMask(numBits, (APIVal - APInt(numBits,1)) | APIVal);
}
More information about the llvm-commits
mailing list