mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-09 07:00:27 +08:00
compilation fix (std::sqrt(int) does not exist)
This commit is contained in:
parent
88cd6885be
commit
727376b5f4
@ -47,7 +47,7 @@ inline void ei_manage_caching_sizes(Action action, std::ptrdiff_t* a=0, std::ptr
|
||||
int ss = 4;
|
||||
for(int i=0; i<nbScalarSizes;++i,ss+=4)
|
||||
{
|
||||
m_maxK[i] = 4 * std::ptrdiff_t(std::sqrt(std::ptrdiff_t(m_cpuCacheSize/(64*ss))));
|
||||
m_maxK[i] = 4 * std::ptrdiff_t(ei_sqrt<float>(m_cpuCacheSize/(64*ss)));
|
||||
m_maxM[i] = 2 * m_maxK[i];
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user