vector: added V_ALWAYS_INLINE macro.
authorSubhransu Mohanty <sub.mohanty@samsung.com>
Wed, 12 Aug 2020 04:29:28 +0000 (13:29 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Mon, 17 Aug 2020 22:22:02 +0000 (07:22 +0900)
src/vector/vglobal.h

index 5707d05..45e95e3 100644 (file)
@@ -80,6 +80,12 @@ using uchar  = uint8_t;
 #define vthread_local
 #endif
 
+#if defined(_MSC_VER)
+    #define V_ALWAYS_INLINE __forceinline
+#else
+    #define V_ALWAYS_INLINE __attribute__((always_inline))
+#endif
+
 template <typename T>
 V_CONSTEXPR inline const T &vMin(const T &a, const T &b)
 {