summaryrefslogtreecommitdiff
path: root/include/llvm/Support/MathExtras.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2007-05-03 18:14:56 +0000
committerChris Lattner <sabre@nondot.org>2007-05-03 18:14:56 +0000
commit18a4c74136a9919dc3235d03c0e060f32d01f3b0 (patch)
treeefa080b80b95838601770ce22316af231b339d54 /include/llvm/Support/MathExtras.h
parent7cf67dfb6a70911c0d1043a608329a9f660b4512 (diff)
downloadllvm-18a4c74136a9919dc3235d03c0e060f32d01f3b0.tar.gz
llvm-18a4c74136a9919dc3235d03c0e060f32d01f3b0.tar.bz2
llvm-18a4c74136a9919dc3235d03c0e060f32d01f3b0.tar.xz
remove extraneous type qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36679 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/MathExtras.h')
-rw-r--r--include/llvm/Support/MathExtras.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/include/llvm/Support/MathExtras.h b/include/llvm/Support/MathExtras.h
index f3c3b676d6..88a110395d 100644
--- a/include/llvm/Support/MathExtras.h
+++ b/include/llvm/Support/MathExtras.h
@@ -55,27 +55,27 @@ inline bool isUInt32(int64_t Value) {
/// 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);
}