From e8dd7b0c9a3d61a2a5be7e763e5bdde486cdfc29 Mon Sep 17 00:00:00 2001 From: Loren Merritt Date: Tue, 12 Aug 2008 00:34:08 +0000 Subject: 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 --- libavcodec/mdct.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'libavcodec/mdct.c') 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;\ } -- cgit v1.2.3