mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-12 11:49:02 +08:00
add missing inline keyword (linking issue)
This commit is contained in:
parent
65d5311c68
commit
0251bb6c1d
@ -30,7 +30,9 @@ namespace internal {
|
|||||||
template<typename _LhsScalar, typename _RhsScalar, bool _ConjLhs=false, bool _ConjRhs=false>
|
template<typename _LhsScalar, typename _RhsScalar, bool _ConjLhs=false, bool _ConjRhs=false>
|
||||||
class gebp_traits;
|
class gebp_traits;
|
||||||
|
|
||||||
std::ptrdiff_t manage_caching_sizes_second_if_negative(std::ptrdiff_t a, std::ptrdiff_t b)
|
|
||||||
|
/** \internal \returns b if a<=0, and returns a otherwise. */
|
||||||
|
inline std::ptrdiff_t manage_caching_sizes_helper(std::ptrdiff_t a, std::ptrdiff_t b)
|
||||||
{
|
{
|
||||||
return a<=0 ? b : a;
|
return a<=0 ? b : a;
|
||||||
}
|
}
|
||||||
@ -38,8 +40,8 @@ std::ptrdiff_t manage_caching_sizes_second_if_negative(std::ptrdiff_t a, std::pt
|
|||||||
/** \internal */
|
/** \internal */
|
||||||
inline void manage_caching_sizes(Action action, std::ptrdiff_t* l1=0, std::ptrdiff_t* l2=0)
|
inline void manage_caching_sizes(Action action, std::ptrdiff_t* l1=0, std::ptrdiff_t* l2=0)
|
||||||
{
|
{
|
||||||
static std::ptrdiff_t m_l1CacheSize = manage_caching_sizes_second_if_negative(queryL1CacheSize(),8 * 1024);
|
static std::ptrdiff_t m_l1CacheSize = manage_caching_sizes_helper(queryL1CacheSize(),8 * 1024);
|
||||||
static std::ptrdiff_t m_l2CacheSize = manage_caching_sizes_second_if_negative(queryTopLevelCacheSize(),1*1024*1024);
|
static std::ptrdiff_t m_l2CacheSize = manage_caching_sizes_helper(queryTopLevelCacheSize(),1*1024*1024);
|
||||||
|
|
||||||
if(action==SetAction)
|
if(action==SetAction)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user