projects
/
platform
/
core
/
uifw
/
lottie-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e1d6fa0
)
vector: added V_ALWAYS_INLINE macro.
author
Subhransu Mohanty
<sub.mohanty@samsung.com>
Wed, 12 Aug 2020 04:29:28 +0000
(13:29 +0900)
committer
Jongmin Lee
<jm105.lee@samsung.com>
Mon, 17 Aug 2020 22:22:02 +0000
(07:22 +0900)
src/vector/vglobal.h
patch
|
blob
|
history
diff --git
a/src/vector/vglobal.h
b/src/vector/vglobal.h
index
5707d05
..
45e95e3
100644
(file)
--- 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 <typename T>
V_CONSTEXPR inline const T &vMin(const T &a, const T &b)
{