llvm.org GIT mirror llvm / 18a4c74
remove extraneous type qualifiers git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36679 91177308-0d34-0410-b5e6-96231b3b80d8 Chris Lattner 13 years ago
2 changed file(s) with 5 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
5454 /// isMask_32 - This function returns true if the argument is a sequence of ones
5555 /// starting at the least significant bit with the remainder zero (32 bit
5656 /// version). Ex. isMask_32(0x0000FFFFU) == true.
57 inline const bool isMask_32(uint32_t Value) {
57 inline bool isMask_32(uint32_t Value) {
5858 return Value && ((Value + 1) & Value) == 0;
5959 }
6060
6161 /// isMask_64 - This function returns true if the argument is a sequence of ones
6262 /// starting at the least significant bit with the remainder zero (64 bit
6363 /// version).
64 inline const bool isMask_64(uint64_t Value) {
64 inline bool isMask_64(uint64_t Value) {
6565 return Value && ((Value + 1) & Value) == 0;
6666 }
6767
6868 /// isShiftedMask_32 - This function returns true if the argument contains a
6969 /// sequence of ones with the remainder zero (32 bit version.)
7070 /// Ex. isShiftedMask_32(0x0000FF00U) == true.
71 inline const bool isShiftedMask_32(uint32_t Value) {
71 inline bool isShiftedMask_32(uint32_t Value) {
7272 return isMask_32((Value - 1) | Value);
7373 }
7474
7575 /// isShiftedMask_64 - This function returns true if the argument contains a
7676 /// sequence of ones with the remainder zero (64 bit version.)
77 inline const bool isShiftedMask_64(uint64_t Value) {
77 inline bool isShiftedMask_64(uint64_t Value) {
7878 return isMask_64((Value - 1) | Value);
7979 }
8080
263263 /// Obtain a 'C' string for the path name.
264264 /// @returns a 'C' string containing the path name.
265265 /// @brief Returns the path as a C string.
266 const char *const c_str() const { return path.c_str(); }
266 const char *c_str() const { return path.c_str(); }
267267
268268 /// @}
269269 /// @name Disk Accessors