projects
/
platform
/
upstream
/
libav.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e969e26
)
Cast constants to float to avoid gcc converting to and from
author
Michael Niedermayer
<michaelni@gmx.at>
Thu, 13 May 2010 17:58:17 +0000
(17:58 +0000)
committer
Michael Niedermayer
<michaelni@gmx.at>
Thu, 13 May 2010 17:58:17 +0000
(17:58 +0000)
float<->double in every operation.
Originally committed as revision 23118 to svn://svn.ffmpeg.org/ffmpeg/trunk
libavcodec/mpegaudiodec.c
patch
|
blob
|
history
diff --git
a/libavcodec/mpegaudiodec.c
b/libavcodec/mpegaudiodec.c
index
89f79f3
..
3196673
100644
(file)
--- a/
libavcodec/mpegaudiodec.c
+++ b/
libavcodec/mpegaudiodec.c
@@
-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