Changes in directory llvm/include/llvm/Support:
MathExtras.h updated: 1.45 -> 1.46 --- Log message: remove extraneous type qualifiers --- Diffs of the changes: (+4 -4) MathExtras.h | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) Index: llvm/include/llvm/Support/MathExtras.h diff -u llvm/include/llvm/Support/MathExtras.h:1.45 llvm/include/llvm/Support/MathExtras.h:1.46 --- llvm/include/llvm/Support/MathExtras.h:1.45 Mon Apr 16 13:10:22 2007 +++ llvm/include/llvm/Support/MathExtras.h Thu May 3 13:14:56 2007 @@ -55,27 +55,27 @@ /// isMask_32 - This function returns true if the argument is a sequence of ones /// starting at the least significant bit with the remainder zero (32 bit /// version). Ex. isMask_32(0x0000FFFFU) == true. -inline const bool isMask_32(uint32_t Value) { +inline bool isMask_32(uint32_t Value) { return Value && ((Value + 1) & Value) == 0; } /// isMask_64 - This function returns true if the argument is a sequence of ones /// starting at the least significant bit with the remainder zero (64 bit /// version). -inline const bool isMask_64(uint64_t Value) { +inline bool isMask_64(uint64_t Value) { return Value && ((Value + 1) & Value) == 0; } /// isShiftedMask_32 - This function returns true if the argument contains a /// sequence of ones with the remainder zero (32 bit version.) /// Ex. isShiftedMask_32(0x0000FF00U) == true. -inline const bool isShiftedMask_32(uint32_t Value) { +inline bool isShiftedMask_32(uint32_t Value) { return isMask_32((Value - 1) | Value); } /// isShiftedMask_64 - This function returns true if the argument contains a /// sequence of ones with the remainder zero (64 bit version.) -inline const bool isShiftedMask_64(uint64_t Value) { +inline bool isShiftedMask_64(uint64_t Value) { return isMask_64((Value - 1) | Value); } _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits