Count number of 0's from the most significant bit to the least stopping at the first 1.
Synopsis
Declared in <llvm/ADT/bit.h>
template<typename T>
[[nodiscard]]
constexpr
int
countl_zero_constexpr(T Val);
Description
A constexpr version of countl_zero.
Only unsigned integral types are allowed.
Returns std::numeric_limits<T>::digits on an input of 0.
Return Value
|
Note
|
The return value should not be discarded. |
Created with MrDocs