Return the smallest power of two that is greater than or equal to v.
Synopsis
Declared in <folly/lang/Bits.h>
template<class T>
constexpr
T
nextPowTwo(T const v);
Return Value
The next power of two >= v, or 1 when v == 0.
Parameters
Name |
Description |
v |
The unsigned value to round up. |
Created with MrDocs