WPILibC++
2018.4.1-20180729040223-1137-g011f0ff
|
RoundUpToPowerOfTwo - This is a helper template that rounds N up to the next power of two (which means N itself if N is already a power of two). More...
#include <SmallPtrSet.h>
Public Types | |
enum | { Val = RoundUpToPowerOfTwoH<N, (N&(N-1)) == 0>::Val } |
RoundUpToPowerOfTwo - This is a helper template that rounds N up to the next power of two (which means N itself if N is already a power of two).