# HG changeset patch # User michael # Date 1273773497 0 # Node ID 5aa83c5fb2c9339bf6b62dba18ec7be972f4baec # Parent 969a7d792b7914e26446ccd1c7e2448856f1b558 Cast constants to float to avoid gcc converting to and from float<->double in every operation. diff -r 969a7d792b79 -r 5aa83c5fb2c9 mpegaudiodec.c --- a/mpegaudiodec.c Thu May 13 16:32:21 2010 +0000 +++ b/mpegaudiodec.c Thu May 13 17:58:17 2010 +0000 @@ -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