added inline to setL1Cache functions to avoid shared object compile error

This commit is contained in:
Trevor Irons 2010-06-08 10:56:50 -06:00
parent fb3fcd0919
commit 684656d41c

View File

@ -82,7 +82,7 @@ inline void ei_manage_caching_sizes(Action action, std::ptrdiff_t* a=0, std::ptr
/** \returns the currently set cpu cache size (in bytes) used to estimate the ideal blocking size parameters. /** \returns the currently set cpu cache size (in bytes) used to estimate the ideal blocking size parameters.
* \sa setL1CacheSize */ * \sa setL1CacheSize */
std::ptrdiff_t l1CacheSize() inline std::ptrdiff_t l1CacheSize()
{ {
std::ptrdiff_t ret; std::ptrdiff_t ret;
ei_manage_caching_sizes(GetAction, &ret); ei_manage_caching_sizes(GetAction, &ret);
@ -104,7 +104,7 @@ std::ptrdiff_t l1CacheSize()
* with blocks of size max_m x max_k. * with blocks of size max_m x max_k.
* *
* \sa ei_setBlockingSizes */ * \sa ei_setBlockingSizes */
void setL1CacheSize(std::ptrdiff_t cache_size) { ei_manage_caching_sizes(SetAction,&cache_size); } inline void setL1CacheSize(std::ptrdiff_t cache_size) { ei_manage_caching_sizes(SetAction,&cache_size); }
/** Set the blocking size parameters \a maxK and \a maxM for the scalar type \a Scalar. /** Set the blocking size parameters \a maxK and \a maxM for the scalar type \a Scalar.
* Note that in practice there is no distinction between scalar types of same size. * Note that in practice there is no distinction between scalar types of same size.