Function integer_log2

Synopsis

#include "breeze/mathematics/integer_log2.hpp"

template <typename T>
constexpr int integer_log2(T x)

Description

Returns the integer part of the logarithm, to base 2, of its argument.

Type requirements
T must be an integral type other than bool.
Precondition
x > 0

Source

Line 35 in breeze/mathematics/integer_log2.hpp.