diff options
author | Brad Midgley <bmidgley@xmission.com> | 2008-01-30 20:37:49 +0000 |
---|---|---|
committer | Brad Midgley <bmidgley@xmission.com> | 2008-01-30 20:37:49 +0000 |
commit | 82540ead6bfe7d0398256b48500e6fbecb0e28e1 (patch) | |
tree | d684b728cf4b4530e12adc881c4b766e92260be9 /sbc/sbc_math.h | |
parent | 7f760a2f3624f26ac0569ed70405e11498aad308 (diff) |
change MUL/MULA semantics
Diffstat (limited to 'sbc/sbc_math.h')
-rw-r--r-- | sbc/sbc_math.h | 4 |
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)) |