[mlpack-svn] r13347 - mlpack/trunk/src/mlpack
fastlab-svn at coffeetalk-1.cc.gatech.edu
fastlab-svn at coffeetalk-1.cc.gatech.edu
Mon Aug 6 16:36:21 EDT 2012
Author: rcurtin
Date: 2012-08-06 16:36:20 -0400 (Mon, 06 Aug 2012)
New Revision: 13347
Modified:
mlpack/trunk/src/mlpack/core.hpp
Log:
Give ourselves a way to force inlining.
Modified: mlpack/trunk/src/mlpack/core.hpp
===================================================================
--- mlpack/trunk/src/mlpack/core.hpp 2012-08-06 20:11:59 UTC (rev 13346)
+++ mlpack/trunk/src/mlpack/core.hpp 2012-08-06 20:36:20 UTC (rev 13347)
@@ -172,4 +172,14 @@
#endif
#endif
+// Give ourselves a nice way to force functions to be inline if we need.
+#define force_inline
+#if defined(__GNUG__)
+ #undef force_inline
+ #define force_inline __attribute__((force_inline))
+#elif defined(_MSC_VER)
+ #undef force_inline
+ #define force_inline __forceinline
#endif
+
+#endif
More information about the mlpack-svn
mailing list