mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-10-20 09:24:58 +00:00
remove extraneous type qualifiers
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36679 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
7cf67dfb6a
commit
18a4c74136
@ -55,27 +55,27 @@ inline bool isUInt32(int64_t Value) {
|
|||||||
/// isMask_32 - This function returns true if the argument is a sequence of ones
|
/// 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
|
/// starting at the least significant bit with the remainder zero (32 bit
|
||||||
/// version). Ex. isMask_32(0x0000FFFFU) == true.
|
/// 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;
|
return Value && ((Value + 1) & Value) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isMask_64 - This function returns true if the argument is a sequence of ones
|
/// 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
|
/// starting at the least significant bit with the remainder zero (64 bit
|
||||||
/// version).
|
/// version).
|
||||||
inline const bool isMask_64(uint64_t Value) {
|
inline bool isMask_64(uint64_t Value) {
|
||||||
return Value && ((Value + 1) & Value) == 0;
|
return Value && ((Value + 1) & Value) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isShiftedMask_32 - This function returns true if the argument contains a
|
/// isShiftedMask_32 - This function returns true if the argument contains a
|
||||||
/// sequence of ones with the remainder zero (32 bit version.)
|
/// sequence of ones with the remainder zero (32 bit version.)
|
||||||
/// Ex. isShiftedMask_32(0x0000FF00U) == true.
|
/// 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);
|
return isMask_32((Value - 1) | Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// isShiftedMask_64 - This function returns true if the argument contains a
|
/// isShiftedMask_64 - This function returns true if the argument contains a
|
||||||
/// sequence of ones with the remainder zero (64 bit version.)
|
/// 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);
|
return isMask_64((Value - 1) | Value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@ namespace sys {
|
|||||||
/// Obtain a 'C' string for the path name.
|
/// Obtain a 'C' string for the path name.
|
||||||
/// @returns a 'C' string containing the path name.
|
/// @returns a 'C' string containing the path name.
|
||||||
/// @brief Returns the path as a C string.
|
/// @brief Returns the path as a C string.
|
||||||
const char *const c_str() const { return path.c_str(); }
|
const char *c_str() const { return path.c_str(); }
|
||||||
|
|
||||||
/// @}
|
/// @}
|
||||||
/// @name Disk Accessors
|
/// @name Disk Accessors
|
||||||
|
Loading…
Reference in New Issue
Block a user