fix idea_mult() for 16 and 32bit systems

This commit is contained in:
toddouska
2015-11-12 10:22:31 -08:00
parent 302fd05edd
commit d9cb1cfbe1

View File

@ -44,9 +44,10 @@
*/
static INLINE word16 idea_mult(word16 x, word16 y)
{
long mul, res;
word32 mul;
long res;
mul = (long)x * (long)y;
mul = (word32)x * (word32)y;
if (mul) {
res = (mul & IDEA_MASK) - (mul >> 16);
if (res <= 0)