summaryrefslogtreecommitdiffstats
path: root/sbc/sbc_math.h
diff options
context:
space:
mode:
authorBrad Midgley <bmidgley@xmission.com>2007-10-05 05:42:55 +0000
committerBrad Midgley <bmidgley@xmission.com>2007-10-05 05:42:55 +0000
commit99b92496ace832a5c75776a55126d731ee42df43 (patch)
tree67ffc29ab6b624f858b9c46a160ae2f505cc9bd9 /sbc/sbc_math.h
parent7fbcefdd87d222c04023dcb1b3ff3cf5aeae8613 (diff)
fix MUL* macros with ()
factor more multiplies in 4-subband encoder
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 d01799c9..e4f82bce 100644
--- a/sbc/sbc_math.h
+++ b/sbc/sbc_math.h
@@ -64,6 +64,6 @@ typedef long long sbc_extended_t;
#define SBC_FIXED_0(val) { val = 0; }
#define ADD(dst, src) { dst += src; }
#define SUB(dst, src) { dst -= src; }
-#define MUL(dst, a, b) { dst = (sbc_fixed_t) a * b; }
-#define MULA(dst, a, b) { dst += (sbc_extended_t) a * b; }
+#define MUL(dst, a, b) { dst = (sbc_fixed_t) (a) * (b); }
+#define MULA(dst, a, b) { dst += (sbc_extended_t) (a) * (b); }
#define DIV2(dst, src) { dst = ASR(src, 1); }