Commit ea882d58 authored by Vitaly Tuzov's avatar Vitaly Tuzov

Added CV_ALWAYS_INLINE macro

parent 78bd55c8
...@@ -200,6 +200,16 @@ namespace cv { namespace debug_build_guard { } using namespace debug_build_guard ...@@ -200,6 +200,16 @@ namespace cv { namespace debug_build_guard { } using namespace debug_build_guard
# endif # endif
#endif #endif
#ifndef CV_ALWAYS_INLINE
#if defined(__GNUC__) && (__GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define CV_ALWAYS_INLINE inline __attribute__((always_inline))
#elif defined(_MSC_VER)
#define CV_ALWAYS_INLINE __forceinline
#else
#define CV_ALWAYS_INLINE inline
#endif
#endif
#if defined CV_DISABLE_OPTIMIZATION || (defined CV_ICC && !defined CV_ENABLE_UNROLLED) #if defined CV_DISABLE_OPTIMIZATION || (defined CV_ICC && !defined CV_ENABLE_UNROLLED)
# define CV_ENABLE_UNROLLED 0 # define CV_ENABLE_UNROLLED 0
#else #else
......
...@@ -11,16 +11,6 @@ ...@@ -11,16 +11,6 @@
#include "opencv2/core/softfloat.hpp" #include "opencv2/core/softfloat.hpp"
#ifndef CV_ALWAYS_INLINE
#if defined(__GNUC__) && (__GNUC__ > 3 ||(__GNUC__ == 3 && __GNUC_MINOR__ >= 1))
#define CV_ALWAYS_INLINE inline __attribute__((always_inline))
#elif defined(_MSC_VER)
#define CV_ALWAYS_INLINE __forceinline
#else
#define CV_ALWAYS_INLINE inline
#endif
#endif
namespace namespace
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment