[llvm-commits] [llvm] r51720 - /llvm/trunk/include/llvm/ADT/APInt.h
Dan Gohman
gohman at apple.com
Thu May 29 17:46:49 PDT 2008
Author: djg
Date: Thu May 29 19:46:49 2008
New Revision: 51720
URL: http://llvm.org/viewvc/llvm-project?rev=51720&view=rev
Log:
Fix an error in the comment for APInt::getMinSignedBits.
Modified:
llvm/trunk/include/llvm/ADT/APInt.h
Modified: llvm/trunk/include/llvm/ADT/APInt.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/APInt.h?rev=51720&r1=51719&r2=51720&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/APInt.h (original)
+++ llvm/trunk/include/llvm/ADT/APInt.h Thu May 29 19:46:49 2008
@@ -898,7 +898,7 @@
/// Computes the minimum bit width for this APInt while considering it to be
/// a signed (and probably negative) value. If the value is not negative,
- /// this function returns the same value as getActiveBits(). Otherwise, it
+ /// this function returns the same value as getActiveBits()+1. Otherwise, it
/// returns the smallest bit width that will retain the negative value. For
/// example, -1 can be written as 0b1 or 0xFFFFFFFFFF. 0b1 is shorter and so
/// for -1, this function will always return 1.
@@ -1108,8 +1108,6 @@
}
/// @}
-
- /// @}
/// @name Building-block Operations for APInt and APFloat
/// @{
More information about the llvm-commits
mailing list