Index: celt/fixed_generic.h |
diff --git a/celt/fixed_generic.h b/celt/fixed_generic.h |
index 657e67c8e7b1883fa36ba4faa20860f4d58af292..ecf018a2443a200ecb55afd3445ac499afd75c80 100644 |
--- a/celt/fixed_generic.h |
+++ b/celt/fixed_generic.h |
@@ -40,7 +40,7 @@ |
#define MULT16_32_Q16(a,b) ADD32(MULT16_16((a),SHR((b),16)), SHR(MULT16_16SU((a),((b)&0x0000ffff)),16)) |
/** 16x32 multiplication, followed by a 16-bit shift right (round-to-nearest). Results fits in 32 bits */ |
-#define MULT16_32_P16(a,b) ADD32(MULT16_16((a),SHR((b),16)), PSHR(MULT16_16((a),((b)&0x0000ffff)),16)) |
+#define MULT16_32_P16(a,b) ADD32(MULT16_16((a),SHR((b),16)), PSHR(MULT16_16SU((a),((b)&0x0000ffff)),16)) |
/** 16x32 multiplication, followed by a 15-bit shift right. Results fits in 32 bits */ |
#define MULT16_32_Q15(a,b) ADD32(SHL(MULT16_16((a),SHR((b),16)),1), SHR(MULT16_16SU((a),((b)&0x0000ffff)),15)) |