comparison mpegaudiodec.c @ 11723:87851e2b449a libavcodec

1.0 and the resulting exactly representable value must be marked as float as well, gcc is hopelessly trash.
author michael
date Thu, 13 May 2010 18:06:44 +0000
parents 5aa83c5fb2c9
children f21bbfe942d4
comparison
equal deleted inserted replaced
11722:5aa83c5fb2c9 11723:87851e2b449a
38 #include "mpegaudiodecheader.h" 38 #include "mpegaudiodecheader.h"
39 39
40 #include "mathops.h" 40 #include "mathops.h"
41 41
42 #if CONFIG_FLOAT 42 #if CONFIG_FLOAT
43 # define SHR(a,b) ((a)*(1.0/(1<<(b)))) 43 # define SHR(a,b) ((a)*(1.0f/(1<<(b))))
44 # define compute_antialias compute_antialias_float 44 # define compute_antialias compute_antialias_float
45 # define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5)) 45 # define FIXR_OLD(a) ((int)((a) * FRAC_ONE + 0.5))
46 # define FIXR(x) ((float)(x)) 46 # define FIXR(x) ((float)(x))
47 # define FIXHR(x) ((float)(x)) 47 # define FIXHR(x) ((float)(x))
48 # define MULH3(x, y, s) ((s)*(y)*(x)) 48 # define MULH3(x, y, s) ((s)*(y)*(x))