lavu/internal: add ff_exp10
authorGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 25 Dec 2015 16:07:08 +0000 (08:07 -0800)
committerGanesh Ajjanagadde <gajjanagadde@gmail.com>
Fri, 25 Dec 2015 18:12:49 +0000 (10:12 -0800)
commit11388b5a8f187d5b7c8a28437e95762485f51ed8
treec0d1a31ee3cd1ba5e3e30121bd4aa6a6cc84a80b
parent73616b1f21a776aef814ca036d783eede28773a7
lavu/internal: add ff_exp10

Fast, reasonably accurate 10^x. Alternative of detection of libm exp10 at configure
time is not worth the trouble, since it is anyway not POSIX or ISO C,
and currently only the GNU libm has it. Furthermore, GNU libm's variant
is ~ 2x slower, and is ironically not correctly rounded (2 ulp off) to justify all
that slowdown.

Reviewed-by: James Almer <jamrial@gmail.com>
Reviewed-by: Hendrik Leppkes <h.leppkes@gmail.com>
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
libavutil/internal.h