std::log2p1 (3) - Linux Manuals
std::log2p1: std::log2p1
Command to display std::log2p1
manual in Linux: $ man 3 std::log2p1
NAME
std::log2p1 - std::log2p1
Synopsis
Defined in header <bit>
template< class T > (since C++20)
constexpr T log2p1(T x) noexcept;
If x is not zero, calculates the number of bits needed to store the value x, that is, \(1 + \lfloor log_2(x) \rfloor\)1 + floor(log
2(x)). If x is zero, returns zero.
This overload only participates in overload resolution if T is an unsigned integer type (that is, unsigned char, unsigned short, unsigned int, unsigned long, unsigned long long, or an extended unsigned integer type).
Return value
Zero if x is zero; otherwise, one plus the base-2 logarithm of x, with any fractional part discarded.
Example
This section is incomplete
Reason: no example
Pages related to std::log2p1
- std::log2,std::log2f,std::log2l (3) - std::log2,std::log2f,std::log2l
- std::log(std::complex) (3) - std::log(std::complex)
- std::log(std::valarray) (3) - std::log(std::valarray)
- std::log,std::logf,std::logl (3) - std::log,std::logf,std::logl
- std::log1p,std::log1pf,std::log1pl (3) - std::log1p,std::log1pf,std::log1pl
- std::log10(std::complex) (3) - std::log10(std::complex)
- std::log10(std::valarray) (3) - std::log10(std::valarray)
- std::log10,std::log10f,std::log10l (3) - std::log10,std::log10f,std::log10l
- std::logb,std::logbf,std::logbl (3) - std::logb,std::logbf,std::logbl
- std::logic_error (3) - std::logic_error
- std::logical_and (3) - std::logical_and
- std::logical_and<void> (3) - std::logical_and<void>