[FFmpeg-cvslog] r23118 - trunk/libavcodec/mpegaudiodec.c
michael
subversion
Thu May 13 19:58:18 CEST 2010
Author: michael
Date: Thu May 13 19:58:17 2010
New Revision: 23118
Log:
Cast constants to float to avoid gcc converting to and from
float<->double in every operation.
Modified:
trunk/libavcodec/mpegaudiodec.c
Modified: trunk/libavcodec/mpegaudiodec.c
==============================================================================
--- trunk/libavcodec/mpegaudiodec.c Thu May 13 18:37:21 2010 (r23117)
+++ trunk/libavcodec/mpegaudiodec.c Thu May 13 19:58:17 2010 (r23118)
@@ -43,8 +43,8 @@
# define SHR(a,b) ((a)*(1.0/(1<<(b))))
# define compute_antialias compute_antialias_float
# define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
-# define FIXR(x) (x)
-# define FIXHR(x) (x)
+# define FIXR(x) ((float)(x))
+# define FIXHR(x) ((float)(x))
# define MULH3(x, y, s) ((s)*(y)*(x))
# define MULLx(x, y, s) ((y)*(x))
# define RENAME(a) a ## _float
More information about the ffmpeg-cvslog
mailing list