Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/videolan/dav1d.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/common/attributes.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/include/common/attributes.h b/include/common/attributes.h
index 4ccc421..ba04fcb 100644
--- a/include/common/attributes.h
+++ b/include/common/attributes.h
@@ -107,6 +107,12 @@
#define NOINLINE __attribute__((noinline))
#endif
+#ifdef _MSC_VER
+#define ALWAYS_INLINE __forceinline
+#else
+#define ALWAYS_INLINE __attribute__((always_inline)) inline
+#endif
+
#ifdef __clang__
#define NO_SANITIZE(x) __attribute__((no_sanitize(x)))
#else