summaryrefslogtreecommitdiffstats
path: root/sbc/sbc_math.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbc/sbc_math.h')
-rw-r--r--sbc/sbc_math.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbc/sbc_math.h b/sbc/sbc_math.h
index 2229d605..9aa8c366 100644
--- a/sbc/sbc_math.h
+++ b/sbc/sbc_math.h
@@ -62,5 +62,5 @@ typedef long long sbc_extended_t;
#define SCALE8_STAGED2(src) ASR_64(src, SCALE8_STAGED2_BITS)
#define SBC_FIXED_0(val) { val = 0; }
-#define MUL(dst, a, b) { dst = (sbc_extended_t) (a) * (b); }
-#define MULA(dst, a, b) { dst += (sbc_extended_t) (a) * (b); }
+#define MUL(a, b) ((sbc_extended_t)(a) * (b))
+#define MULA(a, b, res) ((sbc_extended_t)(a) * (b) + (res))