summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/global.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/global.h b/include/global.h
index bcf3e6486..2b03ebbe1 100644
--- a/include/global.h
+++ b/include/global.h
@@ -52,7 +52,7 @@
#define Q_4_12(n) ((s16)((n) * 4096))
// Converts a number to Q24.8 fixed-point format
-#define Q_24_8(n) ((s32)((n) * 256))
+#define Q_24_8(n) ((s32)((n) << 8))
// Converts a Q8.8 fixed-point format number to a regular integer
#define Q_8_8_TO_INT(n) ((int)((n) / 256))