summaryrefslogtreecommitdiff
path: root/libavcodec/i386/mathops.h
diff options
context:
space:
mode:
Diffstat (limited to 'libavcodec/i386/mathops.h')
-rw-r--r--libavcodec/i386/mathops.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/libavcodec/i386/mathops.h b/libavcodec/i386/mathops.h
index 2ae24fcaac..77c72d85ea 100644
--- a/libavcodec/i386/mathops.h
+++ b/libavcodec/i386/mathops.h
@@ -22,15 +22,13 @@
#ifndef AVCODEC_I386_MATHOPS_H
#define AVCODEC_I386_MATHOPS_H
-#ifdef FRAC_BITS
-# define MULL(ra, rb) \
+#define MULL(ra, rb, shift) \
({ int rt, dummy; __asm__ (\
"imull %3 \n\t"\
"shrdl %4, %%edx, %%eax \n\t"\
: "=a"(rt), "=d"(dummy)\
- : "a" ((int)ra), "rm" ((int)rb), "i"(FRAC_BITS));\
+ : "a" ((int)ra), "rm" ((int)rb), "i"(shift));\
rt; })
-#endif
#define MULH(ra, rb) \
({ int rt, dummy;\