[Lldb-commits] [lldb] r125423 - /lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h

Johnny Chen johnny.chen at apple.com
Fri Feb 11 17:01:41 PST 2011


Author: johnny
Date: Fri Feb 11 19:01:40 2011
New Revision: 125423

URL: http://llvm.org/viewvc/llvm-project?rev=125423&view=rev
Log:
Changed comments of some functions to be consistent with existing ones.

Modified:
    lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h

Modified: lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h?rev=125423&r1=125422&r2=125423&view=diff
==============================================================================
--- lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h (original)
+++ lldb/trunk/source/Plugins/Process/Utility/InstructionUtils.h Fri Feb 11 19:01:40 2011
@@ -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)
 {





More information about the lldb-commits mailing list