[llvm-commits] [llvm] r107286 - /llvm/trunk/include/llvm/ADT/SmallPtrSet.h

Duncan Sands baldrick at free.fr
Wed Jun 30 08:29:46 PDT 2010


Author: baldrick
Date: Wed Jun 30 10:29:46 2010
New Revision: 107286

URL: http://llvm.org/viewvc/llvm-project?rev=107286&view=rev
Log:
Clarify that the NextPowerOfTwo template is idempotent.

Modified:
    llvm/trunk/include/llvm/ADT/SmallPtrSet.h

Modified: llvm/trunk/include/llvm/ADT/SmallPtrSet.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/ADT/SmallPtrSet.h?rev=107286&r1=107285&r2=107286&view=diff
==============================================================================
--- llvm/trunk/include/llvm/ADT/SmallPtrSet.h (original)
+++ llvm/trunk/include/llvm/ADT/SmallPtrSet.h Wed Jun 30 10:29:46 2010
@@ -200,7 +200,7 @@
 };
 
 /// NextPowerOfTwo - This is a helper template that rounds N up to the next
-/// power of two.
+/// power of two (which means N itself if N is already a power of two).
 template<unsigned N>
 struct NextPowerOfTwo;
 





More information about the llvm-commits mailing list