[FFmpeg-devel] [PATCH 1/3] lavu/libm, configure: remove exp10, exp10f detection
Ganesh Ajjanagadde
gajjanagadde at gmail.com
Fri Dec 25 20:01:45 CET 2015
On Fri, Dec 25, 2015 at 9:11 AM, Ganesh Ajjanagadde
<gajjanagadde at gmail.com> wrote:
> Subsequent commit introduces avpriv_exp10 instead.
>
> Signed-off-by: Ganesh Ajjanagadde <gajjanagadde at gmail.com>
> ---
> configure | 2 --
> libavutil/libm.h | 18 ------------------
> 2 files changed, 20 deletions(-)
>
> diff --git a/configure b/configure
> index 73abf28..a510e8f 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 6f9ac1b..3ba3e67 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
> --
> 2.6.4
>
pushed
More information about the ffmpeg-devel
mailing list