diff options
author | Johnny Chen <johnny.chen@apple.com> | 2011-02-12 01:01:40 +0000 |
---|---|---|
committer | Johnny Chen <johnny.chen@apple.com> | 2011-02-12 01:01:40 +0000 |
commit | 61938f795fcf0b44820367741fceb3da86fa08a5 (patch) | |
tree | 792d21ab725527fc042b3b2afaf011c5df0e7f77 /lldb/source/Plugins/Process/Utility | |
parent | 10b5926e292c4afb0101972322be857f4bb11875 (diff) | |
download | bcm5719-llvm-61938f795fcf0b44820367741fceb3da86fa08a5.tar.gz bcm5719-llvm-61938f795fcf0b44820367741fceb3da86fa08a5.zip |
Changed comments of some functions to be consistent with existing ones.
llvm-svn: 125423
Diffstat (limited to 'lldb/source/Plugins/Process/Utility')
-rw-r--r-- | lldb/source/Plugins/Process/Utility/InstructionUtils.h | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/lldb/source/Plugins/Process/Utility/InstructionUtils.h b/lldb/source/Plugins/Process/Utility/InstructionUtils.h index e7b1446a5c5..1bbfad8a93e 100644 --- a/lldb/source/Plugins/Process/Utility/InstructionUtils.h +++ b/lldb/source/Plugins/Process/Utility/InstructionUtils.h @@ -14,9 +14,8 @@ namespace lldb_private { -// Bits32 - Return the bit field(s) from the most significant bit (msbit) to the +// Return the bit field(s) from the most significant bit (msbit) to the // least significant bit (lsbit) of a 32-bit unsigned value. -// static inline uint32_t Bits32 (const uint32_t bits, const uint32_t msbit, const uint32_t lsbit) { @@ -24,17 +23,15 @@ Bits32 (const uint32_t bits, const uint32_t msbit, const uint32_t lsbit) return (bits >> lsbit) & ((1u << (msbit - lsbit + 1)) - 1); } -// Bit32 - Return the bit from the 'bit' position of a 32-bit unsigned value. -// +// Return the bit value from the 'bit' position of a 32-bit unsigned value. static inline uint32_t Bit32 (const uint32_t bits, const uint32_t bit) { return Bits32(bits, bit, bit); } -// SetBits32 - Set the bit field(s) from the most significant bit (msbit) to the -// least significant bit (lsbit) of a 32-bit unsigned value as 'val'. -// +// Set the bit field(s) from the most significant bit (msbit) to the +// least significant bit (lsbit) of a 32-bit unsigned value to 'val'. static inline void SetBits32(uint32_t &bits, const uint32_t msbit, const uint32_t lsbit, const uint32_t val) { @@ -44,16 +41,14 @@ SetBits32(uint32_t &bits, const uint32_t msbit, const uint32_t lsbit, const uint bits |= (val & mask) << lsbit; } -// SetBit32 - Set the 'bit' position of a 32-bit unsigned value as 'val'. -// +// Set the 'bit' position of a 32-bit unsigned value to 'val'. static inline void SetBit32(uint32_t &bits, const uint32_t bit, const uint32_t val) { SetBits32(bits, bit, bit, val); } -// Rotr32 - Rotate a 32-bit unsigned value right by the specified amount. -// +// Rotate a 32-bit unsigned value right by the specified amount. static inline uint32_t Rotr32 (uint32_t bits, uint32_t amt) { @@ -61,8 +56,7 @@ Rotr32 (uint32_t bits, uint32_t amt) return (bits >> amt) | (bits << ((32-amt)&31)); } -// Rotl32 - Rotate a 32-bit unsigned value left by the specified amount. -// +// Rotate a 32-bit unsigned value left by the specified amount. static inline uint32_t Rotl32 (uint32_t bits, uint32_t amt) { @@ -77,7 +71,7 @@ MaskUpToBit (const uint64_t bit) return (1ull << (bit + 1ull)) - 1ull; } -// Returns an integer result equal to the number of bits of x that are ones. +// Return an integer result equal to the number of bits of x that are ones. static inline uint32_t BitCount (uint64_t x) { |