mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-27 07:29:52 +08:00
log2(int) must be inlined.
This commit is contained in:
parent
0bf5894861
commit
8b3be4907d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user