aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/ADT
diff options
context:
space:
mode:
authorDuncan Sands <baldrick@free.fr>2010-06-30 15:29:46 +0000
committerDuncan Sands <baldrick@free.fr>2010-06-30 15:29:46 +0000
commit2e502577ab3645ab5c54434671d299e35c2245cc (patch)
treec9586c7aefab7ccad06bb82e640114d40ec46b5d /include/llvm/ADT
parent2a8bf425bd0aff1a6406805c095d99089a1dfaae (diff)
downloadexternal_llvm-2e502577ab3645ab5c54434671d299e35c2245cc.zip
external_llvm-2e502577ab3645ab5c54434671d299e35c2245cc.tar.gz
external_llvm-2e502577ab3645ab5c54434671d299e35c2245cc.tar.bz2
Clarify that the NextPowerOfTwo template is idempotent.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@107286 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/ADT')
-rw-r--r--include/llvm/ADT/SmallPtrSet.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/ADT/SmallPtrSet.h b/include/llvm/ADT/SmallPtrSet.h
index 2af9c02..5326d69 100644
--- a/include/llvm/ADT/SmallPtrSet.h
+++ b/include/llvm/ADT/SmallPtrSet.h
@@ -200,7 +200,7 @@ public:
};
/// 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;