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:
authorHenrik Gramner <gramner@twoorioles.com>2022-07-06 15:42:43 +0300
committerHenrik Gramner <henrik@gramner.com>2022-07-06 15:56:24 +0300
commit820bf5156322ea6f9d1fc180ac579743347b9c5b (patch)
treeb80d7bb75e617da7c152e72f356bc4ec483d0898 /include
parent233737c9b18e84372701e89bf57098257a30c8e4 (diff)
cpu: Inline dav1d_get_cpu_flags()
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