summaryrefslogtreecommitdiffstats
path: root/sbc/sbc_primitives.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbc/sbc_primitives.h')
-rw-r--r--sbc/sbc_primitives.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sbc/sbc_primitives.h b/sbc/sbc_primitives.h
index 91b72eef..a418ed8a 100644
--- a/sbc/sbc_primitives.h
+++ b/sbc/sbc_primitives.h
@@ -28,6 +28,12 @@
#define SCALE_OUT_BITS 15
+#ifdef __GNUC__
+#define SBC_ALWAYS_INLINE __attribute__((always_inline))
+#else
+#define SBC_ALWAYS_INLINE inline
+#endif
+
struct sbc_encoder_state {
int subbands;
int position[2];