summaryrefslogtreecommitdiffstats
path: root/src/common/bit_field.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-11-05 22:55:11 +0100
committerGitHub <noreply@github.com>2019-11-05 22:55:11 +0100
commit4dc068a90c58e6204173af20f1a6ef29b48ddb28 (patch)
tree16d0f4aa4c4a11222c6950b3ad60e7d1d9905036 /src/common/bit_field.h
parentMerge pull request #3059 from FearlessTobi/stub-am-commands (diff)
parentcommon_func: Use std::array for INSERT_PADDING_* macros. (diff)
downloadyuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.gz
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.bz2
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.lz
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.xz
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.tar.zst
yuzu-4dc068a90c58e6204173af20f1a6ef29b48ddb28.zip
Diffstat (limited to 'src/common/bit_field.h')
-rw-r--r--src/common/bit_field.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/common/bit_field.h b/src/common/bit_field.h
index 8131d1f95..fd2bbbd99 100644
--- a/src/common/bit_field.h
+++ b/src/common/bit_field.h
@@ -36,6 +36,13 @@
#include "common/common_funcs.h"
#include "common/swap.h"
+// Inlining
+#ifdef _WIN32
+#define FORCE_INLINE __forceinline
+#else
+#define FORCE_INLINE inline __attribute__((always_inline))
+#endif
+
/*
* Abstract bitfield class
*