[llvm-commits] CVS: llvm/include/llvm/ADT/APInt.h

Chris Lattner sabre at nondot.org
Tue Apr 10 09:33:24 PDT 2007



Changes in directory llvm/include/llvm/ADT:

APInt.h updated: 1.64 -> 1.65
---
Log message:

fix a comment bug Reid noticed


---
Diffs of the changes:  (+3 -2)

 APInt.h |    5 +++--
 1 files changed, 3 insertions(+), 2 deletions(-)


Index: llvm/include/llvm/ADT/APInt.h
diff -u llvm/include/llvm/ADT/APInt.h:1.64 llvm/include/llvm/ADT/APInt.h:1.65
--- llvm/include/llvm/ADT/APInt.h:1.64	Tue Apr 10 01:43:18 2007
+++ llvm/include/llvm/ADT/APInt.h	Tue Apr 10 11:33:06 2007
@@ -281,8 +281,9 @@
     return *this != 0;
   }
 
-  /// getLimitedValue - Return this value, or return all ones if it is too large
-  /// to return.
+  /// getLimitedValue - If this value is smaller than the specified limit,
+  /// return it, otherwise return the limit value.  This causes the value
+  /// to saturate to the limit.
   uint64_t getLimitedValue(uint64_t Limit = ~0ULL) const {
     return (getActiveBits() > 64 || getZExtValue() > Limit) ?
       Limit :  getZExtValue();






More information about the llvm-commits mailing list