summaryrefslogtreecommitdiff
path: root/libavcodec/mdct.c
diff options
context:
space:
mode:
authorLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:34:08 +0000
committerLoren Merritt <lorenm@u.washington.edu>2008-08-12 00:34:08 +0000
commite8dd7b0c9a3d61a2a5be7e763e5bdde486cdfc29 (patch)
tree3a5428f7e9b072d9195b515ef4742fc84ffd52d3 /libavcodec/mdct.c
parent46803f4f67e821f6e62793d876be164fc04622b2 (diff)
remove a float->double->float conversion.
1.8x faster imdct_c with fpmath=sse, no change with x87 Originally committed as revision 14701 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavcodec/mdct.c')
-rw-r--r--libavcodec/mdct.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/libavcodec/mdct.c b/libavcodec/mdct.c
index 86d447b910..069ad5b5d1 100644
--- a/libavcodec/mdct.c
+++ b/libavcodec/mdct.c
@@ -92,10 +92,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
/* complex multiplication: p = a * b */
#define CMUL(pre, pim, are, aim, bre, bim) \
{\
- double _are = (are);\
- double _aim = (aim);\
- double _bre = (bre);\
- double _bim = (bim);\
+ FFTSample _are = (are);\
+ FFTSample _aim = (aim);\
+ FFTSample _bre = (bre);\
+ FFTSample _bim = (bim);\
(pre) = _are * _bre - _aim * _bim;\
(pim) = _are * _bim + _aim * _bre;\
}