diff mathops.h @ 8201:c6e2ffef3797 libavcodec

Add shift argument to MULL() macro This replaces use of FRAC_BITS in the MULL() definition with a third argument specifying the shift amount. All uses of this macro are updated to pass FRAC_BITS as third argument.
author mru
date Mon, 24 Nov 2008 09:28:55 +0000
parents c4a4495715dd
children 9281a8a9387a
line wrap: on
line diff
--- a/mathops.h	Mon Nov 24 00:14:33 2008 +0000
+++ b/mathops.h	Mon Nov 24 09:28:55 2008 +0000
@@ -45,7 +45,7 @@
 /* generic implementation */
 
 #ifndef MULL
-#   define MULL(a,b) (((int64_t)(a) * (int64_t)(b)) >> FRAC_BITS)
+#   define MULL(a,b,s) (((int64_t)(a) * (int64_t)(b)) >> (s))
 #endif
 
 #ifndef MULH