diff options
author | 2010-06-07 18:55:39 +0200 | |
---|---|---|
committer | 2010-06-07 18:55:39 +0200 | |
commit | 727376b5f43bfa52aa7b7d492001824071f2d1dd (patch) | |
tree | 2b6770388ed64da69505b47427017a91a93c6bde | |
parent | 88cd6885be191440648b6886e0224f5cdae62ae0 (diff) |
compilation fix (std::sqrt(int) does not exist)
-rw-r--r-- | Eigen/src/Core/products/GeneralBlockPanelKernel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index dc6c2ebf3..b17c8e2dc 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -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]; } } |