From 684656d41c3b1b87018719a474ec8c7c244fffa2 Mon Sep 17 00:00:00 2001 From: Trevor Irons Date: Tue, 8 Jun 2010 10:56:50 -0600 Subject: [PATCH] added inline to setL1Cache functions to avoid shared object compile error --- Eigen/src/Core/products/GeneralBlockPanelKernel.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Eigen/src/Core/products/GeneralBlockPanelKernel.h b/Eigen/src/Core/products/GeneralBlockPanelKernel.h index f4a4ac2b4..12934b3b9 100644 --- a/Eigen/src/Core/products/GeneralBlockPanelKernel.h +++ b/Eigen/src/Core/products/GeneralBlockPanelKernel.h @@ -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. * \sa setL1CacheSize */ -std::ptrdiff_t l1CacheSize() +inline std::ptrdiff_t l1CacheSize() { std::ptrdiff_t ret; ei_manage_caching_sizes(GetAction, &ret); @@ -104,7 +104,7 @@ std::ptrdiff_t l1CacheSize() * with blocks of size max_m x max_k. * * \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. * Note that in practice there is no distinction between scalar types of same size.