diff options
author | Henrik Gramner <gramner@twoorioles.com> | 2022-07-06 15:42:43 +0300 |
---|---|---|
committer | Henrik Gramner <henrik@gramner.com> | 2022-07-06 15:56:24 +0300 |
commit | 820bf5156322ea6f9d1fc180ac579743347b9c5b (patch) | |
tree | b80d7bb75e617da7c152e72f356bc4ec483d0898 /include | |
parent | 233737c9b18e84372701e89bf57098257a30c8e4 (diff) |
cpu: Inline dav1d_get_cpu_flags()
Diffstat (limited to 'include')
-rw-r--r-- | include/common/attributes.h | 6 |
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 |