changeset 7545:2dca9201c400 libavcodec

remove a float->double->float conversion. 1.8x faster imdct_c with fpmath=sse, no change with x87
author lorenm
date Tue, 12 Aug 2008 00:34:08 +0000
parents ee1cb5ab9f99
children 97383e012cb9
files mdct.c
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mdct.c	Tue Aug 12 00:33:34 2008 +0000
+++ b/mdct.c	Tue Aug 12 00:34:08 2008 +0000
@@ -92,10 +92,10 @@
 /* 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;\
 }