aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 08:30:06 -0800
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>2015-12-25 10:12:49 -0800
commit73616b1f21a776aef814ca036d783eede28773a7 (patch)
tree06a5cb49a3baa1d658b3e492288fb0f5641bfa77
parent5630ed5be64fef3fd70cb93a7623d46afa0c83e6 (diff)
downloadffmpeg-73616b1f21a776aef814ca036d783eede28773a7.tar.gz
lavu/libm,configure: remove exp10, exp10f detection
Subsequent commit introduces ff_exp10 instead. Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
-rwxr-xr-xconfigure2
-rw-r--r--libavutil/libm.h18
2 files changed, 0 insertions, 20 deletions
diff --git a/configure b/configure
index 73abf282f6..a510e8f9b5 100755
--- a/configure
+++ b/configure
@@ -1817,8 +1817,6 @@ MATH_FUNCS="
copysign
cosf
erf
- exp10
- exp10f
exp2
exp2f
expf
diff --git a/libavutil/libm.h b/libavutil/libm.h
index ad7da060e8..bc44dcab0f 100644
--- a/libavutil/libm.h
+++ b/libavutil/libm.h
@@ -293,24 +293,6 @@ static inline double erf(double z)
#define exp2f(x) ((float)exp2(x))
#endif /* HAVE_EXP2F */
-/* Somewhat inaccurate fallbacks, relative error ~ 1e-13 concentrated on very
-small and very large values. For perfection accuracy-wise, should use pow.
-Speed benefits (>2x average, with no super slow paths) deemed to be worth the
-accuracy tradeoff */
-#if !HAVE_EXP10
-static av_always_inline double exp10(double x)
-{
- return exp2(M_LOG2_10 * x);
-}
-#endif /* HAVE_EXP10 */
-
-#if !HAVE_EXP10F
-static av_always_inline float exp10f(float x)
-{
- return exp2f(M_LOG2_10 * x);
-}
-#endif /* HAVE_EXP10F */
-
#if !HAVE_ISINF
#undef isinf
/* Note: these do not follow the BSD/Apple/GNU convention of returning -1 for