mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-23 12:43:46 +02:00
Cast constants to float to avoid gcc converting to and from
float<->double in every operation. Originally committed as revision 23118 to svn://svn.ffmpeg.org/ffmpeg/trunk
This commit is contained in:
parent
e969e261a5
commit
0628f3e8cf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user