mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
log2(int) must be inlined.
This commit is contained in:
@@ -696,7 +696,7 @@ bool (isfinite)(const std::complex<T>& x)
|
||||
|
||||
// Log base 2 for 32 bits positive integers.
|
||||
// Conveniently returns 0 for x==0.
|
||||
int log2(int x)
|
||||
inline int log2(int x)
|
||||
{
|
||||
eigen_assert(x>=0);
|
||||
unsigned int v(x);
|
||||
|
||||
Reference in New Issue
Block a user