Commit e8dd7b0c authored by Loren Merritt's avatar Loren Merritt

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
parent 46803f4f
...@@ -92,10 +92,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse) ...@@ -92,10 +92,10 @@ int ff_mdct_init(MDCTContext *s, int nbits, int inverse)
/* complex multiplication: p = a * b */ /* complex multiplication: p = a * b */
#define CMUL(pre, pim, are, aim, bre, bim) \ #define CMUL(pre, pim, are, aim, bre, bim) \
{\ {\
double _are = (are);\ FFTSample _are = (are);\
double _aim = (aim);\ FFTSample _aim = (aim);\
double _bre = (bre);\ FFTSample _bre = (bre);\
double _bim = (bim);\ FFTSample _bim = (bim);\
(pre) = _are * _bre - _aim * _bim;\ (pre) = _are * _bre - _aim * _bim;\
(pim) = _are * _bim + _aim * _bre;\ (pim) = _are * _bim + _aim * _bre;\
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment