aboutsummaryrefslogtreecommitdiffstats
path: root/libavutil/mathematics.h
diff options
context:
space:
mode:
authorMåns Rullgård <mans@mansr.com>2010-02-20 20:13:48 +0000
committerMåns Rullgård <mans@mansr.com>2010-02-20 20:13:48 +0000
commite4a35244fac4171a3d3c60a5bac465b98fe0444b (patch)
tree2d54ef1d6bfaa293b00fd5628a0262d56d8033a3 /libavutil/mathematics.h
parentc4f267ab7570a66eea46a231ad10486c63cc4c68 (diff)
downloadffmpeg-e4a35244fac4171a3d3c60a5bac465b98fe0444b.tar.gz
Replace log2f(10) with a constant
Originally committed as revision 21924 to svn://svn.ffmpeg.org/ffmpeg/trunk
Diffstat (limited to 'libavutil/mathematics.h')
-rw-r--r--libavutil/mathematics.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/libavutil/mathematics.h b/libavutil/mathematics.h
index 29b13f77ed..4cc3b49aad 100644
--- a/libavutil/mathematics.h
+++ b/libavutil/mathematics.h
@@ -35,6 +35,9 @@
#ifndef M_LN10
#define M_LN10 2.30258509299404568402 /* log_e 10 */
#endif
+#ifndef M_LOG2_10
+#define M_LOG2_10 3.32192809488736218171 /* log_2 10 */
+#endif
#ifndef M_PI
#define M_PI 3.14159265358979323846 /* pi */
#endif