From: Subhransu Mohanty Date: Wed, 12 Aug 2020 04:29:28 +0000 (+0900) Subject: vector: added V_ALWAYS_INLINE macro. X-Git-Tag: submit/tizen/20200817.223215~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3f47151175f3423ba8cfe85b43e3b85d5b9a9d2;p=platform%2Fcore%2Fuifw%2Flottie-player.git vector: added V_ALWAYS_INLINE macro. --- diff --git a/src/vector/vglobal.h b/src/vector/vglobal.h index 5707d05..45e95e3 100644 --- a/src/vector/vglobal.h +++ b/src/vector/vglobal.h @@ -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 V_CONSTEXPR inline const T &vMin(const T &a, const T &b) {