Changed comments of some functions to be consistent with existing ones.
git-svn-id: https://llvm.org/svn/llvm-project/llvdb/trunk@125423 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/source/Plugins/Process/Utility/InstructionUtils.h b/source/Plugins/Process/Utility/InstructionUtils.h
index e7b1446..1bbfad8 100644
--- a/source/Plugins/Process/Utility/InstructionUtils.h
+++ b/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 @@
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 @@
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 @@
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 @@
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)
{